michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * vim: set ts=8 sts=4 et sw=4 tw=99: michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* michael@0: * Various #defines required to build SpiderMonkey. Embedders should add this michael@0: * file to the start of the command line via -include or a similar mechanism, michael@0: * or SpiderMonkey public headers may not work correctly. michael@0: */ michael@0: michael@0: #ifndef js_RequiredDefines_h michael@0: #define js_RequiredDefines_h michael@0: michael@0: /* michael@0: * The c99 defining the limit macros (UINT32_MAX for example), says: michael@0: * michael@0: * C++ implementations should define these macros only when michael@0: * __STDC_LIMIT_MACROS is defined before is included. michael@0: * michael@0: * The same also occurs with __STDC_CONSTANT_MACROS for the constant macros michael@0: * (INT8_C for example) used to specify a literal constant of the proper type, michael@0: * and with __STDC_FORMAT_MACROS for the format macros (PRId32 for example) used michael@0: * with the fprintf function family. michael@0: */ michael@0: #define __STDC_LIMIT_MACROS michael@0: #define __STDC_CONSTANT_MACROS michael@0: #define __STDC_FORMAT_MACROS michael@0: michael@0: /* Also define a char16_t type if not provided by the compiler. */ michael@0: #include "mozilla/Char16.h" michael@0: michael@0: #endif /* js_RequiredDefines_h */