Add the c++ definition HAVE_CONFIG_H in the scons build and check it before including config.h so the cmake build system doesn't need to worry about conflicts from that file if it exists.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6342 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice 2010-11-04 20:33:45 +00:00
parent 4ac40687ea
commit 3aff478b3a
3 changed files with 5 additions and 3 deletions

View File

@ -48,7 +48,9 @@
#include <IOBluetooth/IOBluetoothUserLib.h>
#include <string.h>
#elif defined(__linux__)
#include "config.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#if HAVE_BLUEZ
#include <bluetooth/bluetooth.h>
#endif

View File

@ -94,7 +94,7 @@ if env['CCVERSION'] < '4.2.0':
if env['CCVERSION'] >= '4.3.0':
env['CCFLAGS'] += ['-Wno-array-bounds', '-Wno-unused-result']
env['CPPDEFINES'] = []
env['CPPDEFINES'] = ['HAVE_CONFIG_H']
if env['flavor'] == 'debug':
env['CPPDEFINES'] += ['_DEBUG']
elif env['flavor'] == 'fastlog':

View File

@ -108,7 +108,7 @@ extern const char *netplay_dolphin_ver;
//CrtDebugBreak breakAt(614);
#endif // end DEBUG/FAST
#else
#elif defined HAVE_CONFIG_H
#include "config.h" // SCons autoconfiguration defines
#endif