tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

config.h (2259B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef MOZ_FFVPX_CONFIG_H
      8 #define MOZ_FFVPX_CONFIG_H
      9 
     10 #if defined(MOZ_FFVPX_AUDIOONLY)
     11 #  if defined(MOZ_WIDGET_ANDROID) && defined(__arm__)
     12 #    include "config_android32.h"
     13 #  elif defined(MOZ_WIDGET_ANDROID) && defined(__aarch64__)
     14 #    include "config_android64.h"
     15 #  elif defined(MOZ_WIDGET_ANDROID) && defined(HAVE_64BIT_BUILD)
     16 #    include "config_android_x86_64.h"
     17 #  elif defined(__aarch64__)
     18 #    include "config_unix_aarch64.h"
     19 #  else
     20      // no assembly
     21 #    include "config_generic.h"
     22 #  endif
     23 #else  // MOZ_FFVPX_AUDIOONLY
     24 #  if defined(XP_WIN)
     25 // Avoid conflicts with mozilla-config.h
     26 #    if !defined(_MSC_VER)
     27 #      undef HAVE_DIRENT_H
     28 #      undef HAVE_UNISTD_H
     29 #    endif
     30 #    if defined(_ARM64_)
     31 #      include "config_win64_aarch64.h"
     32 #    else
     33 #      if defined(HAVE_64BIT_BUILD)
     34 #        include "config_win64.h"
     35 #      else
     36 #        include "config_win32.h"
     37 #      endif
     38 #    endif
     39 // Adjust configure defines for GCC
     40 #    if !defined(_MSC_VER)
     41 #      if !defined(HAVE_64BIT_BUILD)
     42 #        undef HAVE_MM_EMPTY
     43 #        define HAVE_MM_EMPTY 0
     44 #      endif
     45 #      undef HAVE_LIBC_MSVCRT
     46 #      define HAVE_LIBC_MSVCRT 0
     47 #    endif
     48 #  elif defined(XP_DARWIN)
     49 #    if defined(__aarch64__)
     50 #      include "config_darwin_aarch64.h"
     51 #    else
     52 #      include "config_darwin64.h"
     53 #    endif
     54 #  elif defined(MOZ_WIDGET_ANDROID) && defined(__aarch64__)
     55 #    include "config_android64.h"
     56 #  elif defined(MOZ_WIDGET_ANDROID) && defined(__arm__)
     57 #    include "config_android32.h"
     58 #  elif defined(MOZ_WIDGET_ANDROID) && defined(HAVE_64BIT_BUILD)
     59 #    include "config_android_x86_64.h"
     60 #  elif defined(XP_UNIX)
     61 #    if defined(__aarch64__)
     62 #      include "config_unix_aarch64.h"
     63 #    elif defined(HAVE_64BIT_BUILD)
     64 #      include "config_unix64.h"
     65 #    else
     66 #      include "config_unix32.h"
     67 #    endif
     68 #  endif
     69 #endif  // else MOZ_FFVPX_AUDIOONLY
     70        //
     71 #include "config_override.h"
     72 
     73 #endif  // MOZ_FFVPX_CONFIG_H