From 27f9faf7e60ddbd858e08d26f371fe3dfd908dcf Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Tue, 22 Mar 2011 09:40:47 +0000 Subject: [PATCH] Fix gcc build. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7393 8ced0084-cf51-0410-be5f-012b33b47a6e --- SConstruct | 18 +----------------- Source/Core/DolphinWX/Src/GameListCtrl.cpp | 1 + Source/Core/VideoCommon/Src/VideoConfig.cpp | 2 +- 3 files changed, 3 insertions(+), 18 deletions(-) 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));