config.h is only created on Unix.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6343 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2010-11-04 21:27:03 +00:00
parent 3aff478b3a
commit 49a9efb010

View File

@ -94,7 +94,7 @@ if env['CCVERSION'] < '4.2.0':
if env['CCVERSION'] >= '4.3.0': if env['CCVERSION'] >= '4.3.0':
env['CCFLAGS'] += ['-Wno-array-bounds', '-Wno-unused-result'] env['CCFLAGS'] += ['-Wno-array-bounds', '-Wno-unused-result']
env['CPPDEFINES'] = ['HAVE_CONFIG_H'] env['CPPDEFINES'] = []
if env['flavor'] == 'debug': if env['flavor'] == 'debug':
env['CPPDEFINES'] += ['_DEBUG'] env['CPPDEFINES'] += ['_DEBUG']
elif env['flavor'] == 'fastlog': elif env['flavor'] == 'fastlog':
@ -189,6 +189,7 @@ elif sys.platform == 'win32':
else: else:
env['CCFLAGS'] += ['-fPIC', '-msse2'] env['CCFLAGS'] += ['-fPIC', '-msse2']
env['CPPDEFINES'] += ['HAVE_CONFIG_H']
env['CPPPATH'].insert(0, '#') # Make sure we pick up our own config.h env['CPPPATH'].insert(0, '#') # Make sure we pick up our own config.h
if sys.platform == 'linux2': if sys.platform == 'linux2':
env['CPPDEFINES'] += [('_FILE_OFFSET_BITS', 64), '_LARGEFILE_SOURCE'] env['CPPDEFINES'] += [('_FILE_OFFSET_BITS', 64), '_LARGEFILE_SOURCE']