expat_config.h (1288B)
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 #ifndef __expat_config_h__ 7 #define __expat_config_h__ 8 9 #ifdef MOZ_IN_WASM_SANDBOX 10 # include "expat_config_rlbox.h" 11 #else 12 # include "expat_config_moz.h" 13 #endif 14 15 /* Other Mozilla code relies on memmove already, so we assume it's available */ 16 #define HAVE_MEMMOVE 1 17 18 /* This doesn't mean we have poor entropy, just that we don't use Expat's. */ 19 #define XML_POOR_ENTROPY 1 20 21 #define XMLCALL 22 #define XML_STATIC 23 #ifdef HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 24 # undef XMLIMPORT 25 # define XMLIMPORT __attribute__((visibility("hidden"))) 26 #endif 27 28 #define XML_UNICODE 29 typedef char XML_LChar; 30 /* 31 * The char16_t type is only usable in C++ code, so we need this ugly hack to 32 * select a binary compatible C type for the expat C code to use. 33 */ 34 #ifdef __cplusplus 35 typedef char16_t XML_Char; 36 #define XML_T(x) (char16_t)x 37 #else 38 #include <stdint.h> 39 typedef uint16_t XML_Char; 40 #define XML_T(x) (uint16_t)x 41 #endif 42 43 #define XML_DTD 44 #define XML_GE 1 45 #define XML_NS 46 #define XML_CONTEXT_BYTES 0 47 48 #endif /* __expat_config_h__ */