moz.build |
|
3079 |
moz.yaml |
|
948 |
preprocess_wasm2c_config.py |
// mozilla-config.h defines the following which is used
// - HAVE_ALLOCA_H
// - HAVE_UNISTD_H
#include "mozilla-config.h"
#define WABT_VERSION_STRING "Firefox-in-tree-version"
#define WABT_DEBUG 0
/* We don't require color printing of wasm2c errors on any platform */
#define HAVE_WIN32_VT100 0
#ifdef _WIN32
// Ignore whatever is set in mozilla-config.h wrt alloca because it is
// wrong when cross-compiling on Windows.
#undef HAVE_ALLOCA_H
// It is wrong when cross-compiling on Windows.
#undef HAVE_UNISTD_H
/* Whether ssize_t is defined by stddef.h */
#define HAVE_SSIZE_T 0
/* Whether strcasecmp is defined by strings.h */
#define HAVE_STRCASECMP 0
#else
#define HAVE_SSIZE_T 1
#define HAVE_STRCASECMP 1
#endif
#if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && defined(__ORDER_BIG_ENDIAN__)
# if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
# define WABT_BIG_ENDIAN 0
# elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
# define WABT_BIG_ENDIAN 1
# else
# error "Can't handle mixed-endian architectures"
# endif
#else
# error "Don't know how to determine endianness"
#endif
/* Use internal Pico-SHA. Never use OpenSSL */
#define HAVE_OPENSSL_SHA_H 0
/* Whether snprintf is defined by stdio.h */
#define HAVE_SNPRINTF 1
#if defined(_MSC_VER)
#define COMPILER_IS_GNU 0
#define COMPILER_IS_CLANG 0
#define COMPILER_IS_MSVC 1
#elif defined(__GNUC__)
#if defined(__clang__)
#define COMPILER_IS_GNU 0
#define COMPILER_IS_CLANG 1
#define COMPILER_IS_MSVC 0
#else
#define COMPILER_IS_GNU 1
#define COMPILER_IS_CLANG 0
#define COMPILER_IS_MSVC 0
#endif
#else
#error "Unknown compiler"
#endif
#define WITH_EXCEPTIONS 0
#if SIZE_MAX == 0xffffffffffffffff
#define SIZEOF_SIZE_T 8
#elif SIZE_MAX == 0xffffffff
#define SIZEOF_SIZE_T 4
#else
#error "Unknown size of size_t"
#endif
|
4380 |