mozilla-config.h.in (1903B)
1 /* List of defines generated by configure. Included with preprocessor flag, 2 * -include, to avoid long list of -D defines on the compile command-line. 3 * Do not edit. 4 */ 5 6 #ifndef MOZILLA_CONFIG_H 7 #define MOZILLA_CONFIG_H 8 9 #if defined(__clang__) 10 #pragma clang diagnostic push 11 #if __has_warning("-Wreserved-id-macro") 12 #pragma clang diagnostic ignored "-Wreserved-id-macro" 13 #endif 14 #endif 15 16 /* Expands to all the defines from configure. */ 17 #undef ALLDEFINES 18 19 /* 20 * The c99 defining the limit macros (UINT32_MAX for example), says: 21 * 22 * C++ implementations should define these macros only when 23 * __STDC_LIMIT_MACROS is defined before <stdint.h> is included. 24 * 25 * The same also occurs with __STDC_CONSTANT_MACROS for the constant macros 26 * (INT8_C for example) used to specify a literal constant of the proper type, 27 * and with __STDC_FORMAT_MACROS for the format macros (PRId32 for example) used 28 * with the fprintf function family. 29 */ 30 #define __STDC_LIMIT_MACROS 31 #if !defined(__STDC_CONSTANT_MACROS) 32 #define __STDC_CONSTANT_MACROS 33 #endif 34 #if !defined(__STDC_FORMAT_MACROS) 35 #define __STDC_FORMAT_MACROS 36 #endif 37 38 #if defined(__clang__) 39 #pragma clang diagnostic pop 40 #endif 41 42 /* 43 * CHROMIUM_SANDBOX_BUILD is defined in security/sandbox/moz.build. 44 */ 45 #if defined(CHROMIUM_SANDBOX_BUILD) && defined(XP_WIN) 46 #ifdef __MINGW32__ 47 /* 48 * MinGW doesn't support __try / __except. There are a few mechanisms available 49 * to hack around it and pseudo-support it, but these are untested in Firefox. 50 * What is tested (and works) is replacing them with if(true) and else. 51 * We need to include excpt.h first, so that we can then override it. 52 */ 53 #include <excpt.h> 54 #define __try if(true) 55 #define __except(x) else 56 #ifdef GetExceptionCode 57 #undef GetExceptionCode 58 #endif 59 #define GetExceptionCode() 0 60 61 #endif /* __MINGW32__ */ 62 #endif /* defined(CHROMIUM_SANDBOX_BUILD) && defined(XP_WIN) */ 63 64 #endif /* MOZILLA_CONFIG_H */