Blame mozilla-config.h.in

Packit f0b94e
/* List of defines generated by configure. Included with preprocessor flag,
Packit f0b94e
 * -include, to avoid long list of -D defines on the compile command-line.
Packit f0b94e
 * Do not edit.
Packit f0b94e
 */
Packit f0b94e
Packit f0b94e
#ifndef MOZILLA_CONFIG_H
Packit f0b94e
#define MOZILLA_CONFIG_H
Packit f0b94e
Packit f0b94e
#if defined(__clang__)
Packit f0b94e
#pragma clang diagnostic push
Packit f0b94e
#if __has_warning("-Wreserved-id-macro")
Packit f0b94e
#pragma clang diagnostic ignored "-Wreserved-id-macro"
Packit f0b94e
#endif
Packit f0b94e
#endif
Packit f0b94e
Packit f0b94e
/* Expands to all the defines from configure. */
Packit f0b94e
#undef ALLDEFINES
Packit f0b94e
Packit f0b94e
/*
Packit f0b94e
 * The c99 defining the limit macros (UINT32_MAX for example), says:
Packit f0b94e
 *
Packit f0b94e
 *   C++ implementations should define these macros only when
Packit f0b94e
 *   __STDC_LIMIT_MACROS is defined before <stdint.h> is included.
Packit f0b94e
 *
Packit f0b94e
 * The same also occurs with __STDC_CONSTANT_MACROS for the constant macros
Packit f0b94e
 * (INT8_C for example) used to specify a literal constant of the proper type,
Packit f0b94e
 * and with __STDC_FORMAT_MACROS for the format macros (PRId32 for example) used
Packit f0b94e
 * with the fprintf function family.
Packit f0b94e
 */
Packit f0b94e
#define __STDC_LIMIT_MACROS
Packit f0b94e
#define __STDC_CONSTANT_MACROS
Packit f0b94e
#if !defined(__STDC_FORMAT_MACROS)
Packit f0b94e
#define __STDC_FORMAT_MACROS
Packit f0b94e
#endif
Packit f0b94e
Packit f0b94e
#if defined(__clang__)
Packit f0b94e
#pragma clang diagnostic pop
Packit f0b94e
#endif
Packit f0b94e
Packit f0b94e
/*
Packit f0b94e
 * Force-include hunspell_alloc_hooks.h and hunspell_fopen_hooks.h for hunspell,
Packit f0b94e
 * so that we don't need to modify them directly.
Packit f0b94e
 *
Packit f0b94e
 * HUNSPELL_STATIC is defined in extensions/spellcheck/hunspell/src/Makefile.in,
Packit f0b94e
 * unless --enable-system-hunspell is defined.
Packit f0b94e
 */
Packit f0b94e
#if defined(HUNSPELL_STATIC)
Packit f0b94e
#include "hunspell_alloc_hooks.h"
Packit f0b94e
#include "hunspell_fopen_hooks.h"
Packit f0b94e
#endif
Packit f0b94e
Packit f0b94e
/*
Packit f0b94e
 * Force-include sdkdecls.h for building the chromium sandbox code.
Packit f0b94e
 *
Packit f0b94e
 * CHROMIUM_SANDBOX_BUILD is defined in security/sandbox/moz.build.
Packit f0b94e
 * Note that this include path relies on the LOCAL_INCLUDES in that file.
Packit f0b94e
 */
Packit f0b94e
#if defined(CHROMIUM_SANDBOX_BUILD) && defined(XP_WIN)
Packit f0b94e
#include "base/win/sdkdecls.h"
Packit f0b94e
Packit f0b94e
#ifdef __MINGW32__
Packit f0b94e
/*
Packit f0b94e
 * MinGW doesn't support __try / __except. There are a few mechanisms available
Packit f0b94e
 * to hack around it and pseudo-support it, but these are untested in Firefox.
Packit f0b94e
 * What is tested (and works) is replacing them with if(true) and else.
Packit f0b94e
 */
Packit f0b94e
#define __try if(true)
Packit f0b94e
#define __except(x) else
Packit f0b94e
#ifdef GetExceptionCode
Packit f0b94e
#undef GetExceptionCode
Packit f0b94e
#endif
Packit f0b94e
#define GetExceptionCode() 0
Packit f0b94e
Packit f0b94e
#endif /* __MINGW32__ */
Packit f0b94e
#endif /* defined(CHROMIUM_SANDBOX_BUILD) && defined(XP_WIN) */
Packit f0b94e
Packit f0b94e
#endif /* MOZILLA_CONFIG_H */