From 0c847ab47902413a1e0b69650dc7a8331f93532e Mon Sep 17 00:00:00 2001 From: Joshua Scoggins Date: Sun, 17 Apr 2016 23:48:44 -0700 Subject: [PATCH] Move system specific includes out to a separate file --- Sources/Engine/Base/Base.h | 4 +++- Sources/Engine/Engine.h | 19 ++++--------------- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/Sources/Engine/Base/Base.h b/Sources/Engine/Base/Base.h index 8850021..41fa86e 100644 --- a/Sources/Engine/Base/Base.h +++ b/Sources/Engine/Base/Base.h @@ -13,7 +13,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ - +#ifndef SE_INCL_ENGINE_BASE_BASE_H +#define SE_INCL_ENGINE_BASE_BASE_H /* * rcg10042001 In case these don't get defined in the project file, try to * catch them here... @@ -83,3 +84,4 @@ with this program; if not, write to the Free Software Foundation, Inc., #define ENGINE_API #endif +#endif diff --git a/Sources/Engine/Engine.h b/Sources/Engine/Engine.h index 538a294..73f7f28 100644 --- a/Sources/Engine/Engine.h +++ b/Sources/Engine/Engine.h @@ -19,11 +19,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #pragma once #endif -#ifdef _WIN32 - #ifndef PLATFORM_WIN32 - #define PLATFORM_WIN32 1 - #endif -#endif +//#include +#include // set this to 1 to enable checks whether somethig is deleted while iterating some array/container #define CHECKARRAYLOCKING 0 @@ -38,17 +35,9 @@ with this program; if not, write to the Free Software Foundation, Inc., #include // for qsort #include // for FPU control -/* rcg10042001 !!! FIXME: Move these somewhere. */ -#if (defined PLATFORM_WIN32) -#include -#include -#include -#include -#include -#include // for timers -#endif -#include +#include + #include #include