From 78c1465ed309d2e8937dc00a19635f40c8a4b05a Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Thu, 21 Apr 2011 12:35:34 +0200 Subject: add #include to all source files When using config.h, it must be the very first include in all source files since it contains #define that may change the compilation process (eg libc structure layout changes when it's used to enable large file support on 32 bit x86 archs). This commit adds it at the beginning of all .c and .cpp files --- client/gui/gui.cpp | 4 ++++ client/gui/resource_provider.cpp | 4 ++++ client/gui/softrenderer.cpp | 3 ++- client/gui/softtexture.cpp | 3 +-- 4 files changed, 11 insertions(+), 3 deletions(-) (limited to 'client/gui') diff --git a/client/gui/gui.cpp b/client/gui/gui.cpp index eba241f7..abfe1110 100644 --- a/client/gui/gui.cpp +++ b/client/gui/gui.cpp @@ -15,6 +15,10 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, see . */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "common.h" #include diff --git a/client/gui/resource_provider.cpp b/client/gui/resource_provider.cpp index 2b5c44f3..b80ce092 100644 --- a/client/gui/resource_provider.cpp +++ b/client/gui/resource_provider.cpp @@ -15,6 +15,10 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, see . */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "common.h" #include "resource_provider.h" diff --git a/client/gui/softrenderer.cpp b/client/gui/softrenderer.cpp index bdc7a6cd..92a1c838 100644 --- a/client/gui/softrenderer.cpp +++ b/client/gui/softrenderer.cpp @@ -15,10 +15,11 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, see . */ -#include "common.h" #ifdef HAVE_CONFIG_H #include "config.h" #endif + +#include "common.h" #include "utils.h" #include "debug.h" diff --git a/client/gui/softtexture.cpp b/client/gui/softtexture.cpp index a633f24e..b41dd65b 100644 --- a/client/gui/softtexture.cpp +++ b/client/gui/softtexture.cpp @@ -15,12 +15,11 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, see . */ -#include "common.h" - #ifdef HAVE_CONFIG_H #include "config.h" #endif +#include "common.h" #include "softtexture.h" #include "softrenderer.h" -- cgit