diff -r 1abbf5064af1 -r 966eb4be6316 AMBuildScript --- a/AMBuildScript Sun Jun 30 10:39:04 2013 -0400 +++ b/AMBuildScript Sat Jul 06 11:24:21 2013 -0400 @@ -116,6 +116,7 @@ (self.vendor == 'clang' and cxx.majorVersion >= 3): self.compiler.AddToListVar('CXXFLAGS', '-Wno-delete-non-virtual-dtor') self.compiler.AddToListVar('CDEFINES', 'HAVE_STDINT_H') + self.compiler.AddToListVar('CDEFINES', 'GNUC') if self.vendor == 'gcc': self.compiler.AddToListVar('CFLAGS', '-mfpmath=sse') elif isinstance(cxx, Cpp.MSVC): @@ -178,6 +179,7 @@ #Platform-specifics if AMBuild.target['platform'] == 'linux': self.compiler.AddToListVar('CDEFINES', '_LINUX') + self.compiler.AddToListVar('CDEFINES', 'POSIX') if self.vendor == 'gcc': self.compiler.AddToListVar('POSTLINKFLAGS', '-static-libgcc') if self.vendor == 'clang': @@ -185,6 +187,7 @@ elif AMBuild.target['platform'] == 'darwin': self.compiler.AddToListVar('CDEFINES', 'OSX') self.compiler.AddToListVar('CDEFINES', '_OSX') + self.compiler.AddToListVar('CDEFINES', 'POSIX') self.compiler.AddToListVar('POSTLINKFLAGS', '-mmacosx-version-min=10.5') self.compiler.AddToListVar('POSTLINKFLAGS', ['-arch', 'i386']) self.compiler.AddToListVar('POSTLINKFLAGS', '-lstdc++') @@ -346,7 +349,7 @@ if AMBuild.target['platform'] == 'windows': compiler['CDEFINES'].extend(['COMPILER_MSVC', 'COMPILER_MSVC32']) else: - compiler['CDEFINES'].extend(['COMPILER_GCC', 'POSIX']) + compiler['CDEFINES'].extend(['COMPILER_GCC']) if sdk == 'ep1': if AMBuild.target['platform'] == 'linux':