зеркало из https://github.com/mozilla/gecko-dev.git
Compile with -D__STDC_LIMIT_MACROS to avoid having to fight with system headers over which includes stdint.h first. irc-r=jimb,Waldo
This commit is contained in:
Родитель
a461835fa4
Коммит
2fb0ec3f31
|
@ -434,7 +434,13 @@ distclean::
|
|||
export::
|
||||
mkdir -p nanojit
|
||||
|
||||
DEFINES += -DEXPORT_JS_API
|
||||
DEFINES += -DEXPORT_JS_API
|
||||
|
||||
# Some platforms that have stdint.h include it in system headers. So
|
||||
# to reliably get limit macros defined, we'd always have to define the
|
||||
# one below before including any header, but that's obscure and
|
||||
# fragile, so we do it here.
|
||||
DEFINES += -D__STDC_LIMIT_MACROS
|
||||
|
||||
INCLUDES += -I$(srcdir)
|
||||
|
||||
|
|
|
@ -38,8 +38,6 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#define __STDC_LIMIT_MACROS
|
||||
|
||||
/*
|
||||
* JS execution context.
|
||||
*/
|
||||
|
|
|
@ -38,8 +38,6 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#define __STDC_LIMIT_MACROS
|
||||
|
||||
/*
|
||||
* JS number type and wrapper class.
|
||||
*/
|
||||
|
|
|
@ -41,8 +41,6 @@
|
|||
/*
|
||||
* JS object implementation.
|
||||
*/
|
||||
#define __STDC_LIMIT_MACROS
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "jstypes.h"
|
||||
|
|
|
@ -48,8 +48,6 @@
|
|||
* of rooting things that might lose their newborn root due to subsequent GC
|
||||
* allocations in the same native method.
|
||||
*/
|
||||
#define __STDC_LIMIT_MACROS
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "jstypes.h"
|
||||
|
|
|
@ -37,8 +37,6 @@
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#define __STDC_LIMIT_MACROS
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "jstypes.h"
|
||||
|
|
|
@ -46,9 +46,7 @@
|
|||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#define __STDC_LIMIT_MACROS
|
||||
#include "jsstdint.h"
|
||||
|
||||
#include "jstypes.h"
|
||||
#include "jsutil.h"
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче