Removed GLIBC_2.7 dependency from spcomp (r=fyren).
This commit is contained in:
parent
9887f9da48
commit
f3006a478f
@ -16,7 +16,7 @@ elif compiler.cc.name == 'msvc':
|
||||
compiler['POSTLINKFLAGS'].append('/SUBSYSTEM:CONSOLE')
|
||||
|
||||
if AMBuild.target['platform'] == 'linux':
|
||||
compiler['CDEFINES'].extend(['LINUX', 'HAVE_STDINT_H', 'AMX_ANSIONLY', 'ENABLE_BINRELOC'])
|
||||
compiler['CDEFINES'].extend(['LINUX', 'HAVE_STDINT_H', 'AMX_ANSIONLY', 'ENABLE_BINRELOC', '_GNU_SOURCE'])
|
||||
elif AMBuild.target['platform'] == 'darwin':
|
||||
compiler['CDEFINES'].extend(['DARWIN', 'HAVE_STDINT_H', 'AMX_ANSIONLY', 'ENABLE_BINRELOC'])
|
||||
|
||||
|
@ -30,7 +30,7 @@ LINK = -lgcc -static-libgcc
|
||||
|
||||
INCLUDE = -I. -I$(SMSDK)/public -I$(SMSDK)/public/sourcepawn
|
||||
|
||||
CFLAGS += -DLINUX -DHAVE_STDINT_H -DAMX_ANSIONLY -DENABLE_BINRELOC -Dstricmp=strcasecmp -m32
|
||||
CFLAGS += -D_GNU_SOURCE -Wall -Werror -Wno-uninitialized -Wno-unused-result -Wno-unused -Wno-switch -Wno-parentheses -Wno-format -DLINUX -DHAVE_STDINT_H -DAMX_ANSIONLY -DENABLE_BINRELOC -Dstricmp=strcasecmp -m32
|
||||
CPPFLAGS += -Wno-non-virtual-dtor -fno-exceptions -fno-rtti
|
||||
|
||||
################################################
|
||||
|
@ -59,7 +59,7 @@ static short skiplevel; /* level at which we started skipping (including nested
|
||||
static unsigned char term_expr[] = "";
|
||||
static int listline=-1; /* "current line" for the list file */
|
||||
|
||||
#if defined __GNUC__
|
||||
#if defined DARWIN
|
||||
static double pow10(double d)
|
||||
{
|
||||
return pow(10, d);
|
||||
|
Loading…
Reference in New Issue
Block a user