AMBuildScript
changeset 847 966eb4be6316
parent 845 d3f3a0a296d5
child 850 3d9258ef9a30
     1.1 --- a/AMBuildScript	Sun Jun 30 10:39:04 2013 -0400
     1.2 +++ b/AMBuildScript	Sat Jul 06 11:24:21 2013 -0400
     1.3 @@ -116,6 +116,7 @@
     1.4  						(self.vendor == 'clang' and cxx.majorVersion >= 3):
     1.5  					self.compiler.AddToListVar('CXXFLAGS', '-Wno-delete-non-virtual-dtor')
     1.6  				self.compiler.AddToListVar('CDEFINES', 'HAVE_STDINT_H')
     1.7 +				self.compiler.AddToListVar('CDEFINES', 'GNUC')
     1.8  				if self.vendor == 'gcc':
     1.9  					self.compiler.AddToListVar('CFLAGS', '-mfpmath=sse')
    1.10  			elif isinstance(cxx, Cpp.MSVC):
    1.11 @@ -178,6 +179,7 @@
    1.12  			#Platform-specifics
    1.13  			if AMBuild.target['platform'] == 'linux':
    1.14  				self.compiler.AddToListVar('CDEFINES', '_LINUX')
    1.15 +				self.compiler.AddToListVar('CDEFINES', 'POSIX')
    1.16  				if self.vendor == 'gcc':
    1.17  					self.compiler.AddToListVar('POSTLINKFLAGS', '-static-libgcc')
    1.18  				if self.vendor == 'clang':
    1.19 @@ -185,6 +187,7 @@
    1.20  			elif AMBuild.target['platform'] == 'darwin':
    1.21  				self.compiler.AddToListVar('CDEFINES', 'OSX')
    1.22  				self.compiler.AddToListVar('CDEFINES', '_OSX')
    1.23 +				self.compiler.AddToListVar('CDEFINES', 'POSIX')
    1.24  				self.compiler.AddToListVar('POSTLINKFLAGS', '-mmacosx-version-min=10.5')
    1.25  				self.compiler.AddToListVar('POSTLINKFLAGS', ['-arch', 'i386'])
    1.26  				self.compiler.AddToListVar('POSTLINKFLAGS', '-lstdc++')
    1.27 @@ -346,7 +349,7 @@
    1.28  			if AMBuild.target['platform'] == 'windows':
    1.29  				compiler['CDEFINES'].extend(['COMPILER_MSVC', 'COMPILER_MSVC32'])
    1.30  			else:
    1.31 -				compiler['CDEFINES'].extend(['COMPILER_GCC', 'POSIX'])
    1.32 +				compiler['CDEFINES'].extend(['COMPILER_GCC'])
    1.33  
    1.34  		if sdk == 'ep1':
    1.35  			if AMBuild.target['platform'] == 'linux':