/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef __expat_config_h__ #define __expat_config_h__ #ifdef MOZ_IN_WASM_SANDBOX # include "expat_config_rlbox.h" #else # include "expat_config_moz.h" #endif /* Other GNU code relies on memmove already, so we assume it's available */ #define HAVE_MEMMOVE 1 /* This doesn't mean we have poor entropy, just that we don't use Expat's. */ #define XML_POOR_ENTROPY 1 #define XMLCALL #define XML_STATIC #ifdef HAVE_VISIBILITY_HIDDEN_ATTRIBUTE # undef XMLIMPORT # define XMLIMPORT __attribute__((visibility("hidden"))) #endif #define XML_UNICODE typedef char XML_LChar; /* * The char16_t type is only usable in C++ code, so we need this ugly hack to * select a binary compatible C type for the expat C code to use. */ #ifdef __cplusplus typedef char16_t XML_Char; #define XML_T(x) (char16_t)x #else #include typedef uint16_t XML_Char; #define XML_T(x) (uint16_t)x #endif #define XML_DTD #define XML_GE 1 #define XML_NS #define XML_CONTEXT_BYTES 0 #endif /* __expat_config_h__ */