js/public/RequiredDefines.h

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

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

mercurial