diff --git a/SConstruct b/SConstruct index 773b291a26..a563823859 100755 --- a/SConstruct +++ b/SConstruct @@ -183,24 +183,8 @@ else: print "gtk+-2.0 developement headers not detected" print "gtk+-2.0 is required to build the WX GUI" Exit(1) + env.ParseConfig('pkg-config --cflags --libs gtk+-2.0') env['CPPDEFINES'] += ['__WXGTK__'] - env['CPPPATH'] += ['/usr/include/atk-1.0'] - env['CPPPATH'] += ['/usr/include/cairo'] - env['CPPPATH'] += ['/usr/include/glib-2.0'] - env['CPPPATH'] += ['/usr/include/gtk-2.0'] - env['CPPPATH'] += ['/usr/include/pango-1.0'] - env['CPPPATH'] += ['/usr/pkg/include/atk-1.0'] - env['CPPPATH'] += ['/usr/pkg/include/cairo'] - env['CPPPATH'] += ['/usr/pkg/include/glib-2.0'] - env['CPPPATH'] += ['/usr/pkg/include/gtk-2.0'] - env['CPPPATH'] += ['/usr/pkg/include/pango-1.0'] - env['CPPPATH'] += ['/usr/local/include/atk-1.0'] - env['CPPPATH'] += ['/usr/local/include/cairo'] - env['CPPPATH'] += ['/usr/local/include/glib-2.0'] - env['CPPPATH'] += ['/usr/local/include/gtk-2.0'] - env['CPPPATH'] += ['/usr/local/include/pango-1.0'] - env['CPPPATH'] += ['/usr/lib/glib-2.0/include'] - env['CPPPATH'] += ['/usr/lib/gtk-2.0/include'] conf.Define('HAVE_WX', 1) env['HAVE_BLUEZ'] = conf.CheckLib('bluetooth') diff --git a/Source/Core/DolphinWX/Src/GameListCtrl.cpp b/Source/Core/DolphinWX/Src/GameListCtrl.cpp index e6da681b45..e311135a95 100644 --- a/Source/Core/DolphinWX/Src/GameListCtrl.cpp +++ b/Source/Core/DolphinWX/Src/GameListCtrl.cpp @@ -21,6 +21,7 @@ #include #include +#include #include "FileSearch.h" #include "StringUtil.h" diff --git a/Source/Core/VideoCommon/Src/VideoConfig.cpp b/Source/Core/VideoCommon/Src/VideoConfig.cpp index d88e20a836..2c147a0ecb 100644 --- a/Source/Core/VideoCommon/Src/VideoConfig.cpp +++ b/Source/Core/VideoCommon/Src/VideoConfig.cpp @@ -118,7 +118,7 @@ void VideoConfig::Load(const char *main_ini_file, bool filecheck_passed, const c iniFile.Get("Hardware", "Adapter", &iAdapter, 0); if (iAdapter == -1) iAdapter = 0; - SET_STATE(true, iAdapter); + SET_STATE((void)true, iAdapter); // Load common settings iniFile.Load(File::GetUserPath(F_DOLPHINCONFIG_IDX));