diff --git a/Externals/WiiUse/Src/wiiuse.h b/Externals/WiiUse/Src/wiiuse.h index 70e453e32b..21d820bb2f 100644 --- a/Externals/WiiUse/Src/wiiuse.h +++ b/Externals/WiiUse/Src/wiiuse.h @@ -48,7 +48,9 @@ #include #include #elif defined(__linux__) - #include "config.h" + #ifdef HAVE_CONFIG_H + #include "config.h" + #endif #if HAVE_BLUEZ #include #endif diff --git a/SConstruct b/SConstruct index 7e987f1da3..83f56736e8 100644 --- a/SConstruct +++ b/SConstruct @@ -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': diff --git a/Source/Core/Common/Src/Common.h b/Source/Core/Common/Src/Common.h index 8fc58c8248..842230ed66 100644 --- a/Source/Core/Common/Src/Common.h +++ b/Source/Core/Common/Src/Common.h @@ -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