diff --git a/MiniEngine.h b/MiniEngine.h index 9844c5f..6d93321 100644 --- a/MiniEngine.h +++ b/MiniEngine.h @@ -1,31 +1,10 @@ #pragma once - -#ifdef _MSC_VER -/// Visual Studio (VC++ Compiler) -#include -#undef main -#include -#include -#include - -/// VC++ does not implied C++ exception. Use this to ignore compile warning on this. -#pragma warning (disable:4290) -#else -/// CodeBlocks (MinGW Compiler) -#include -#undef main -#include -#include -#include -#endif - +#include "MiniEngine_Config.h" #include #include #include #include -#define _DECL_DEPRECATED [[deprecated]] - namespace MiniEngine { diff --git a/MiniEngine_Config.h b/MiniEngine_Config.h new file mode 100644 index 0000000..df13523 --- /dev/null +++ b/MiniEngine_Config.h @@ -0,0 +1,23 @@ +#pragma once + +#ifdef _MSC_VER +/// Visual Studio (VC++ Compiler) +#include +#undef main +#include +#include +#include + +/// VC++ does not implied C++ exception. Use this to ignore compile warning on this. +#pragma warning (disable:4290) +#else +/// CodeBlocks (MinGW Compiler) +#include +#undef main +#include +#include +#include + +#endif /// End of #ifdef _MSC_VER + +#define _DECL_DEPRECATED [[deprecated]] diff --git a/MiniEngine_Event.h b/MiniEngine_Event.h index 9a136db..0f44f23 100644 --- a/MiniEngine_Event.h +++ b/MiniEngine_Event.h @@ -1,7 +1,8 @@ #pragma once -#include "MiniEngine.h" +#include "MiniEngine_Config.h" #include #include +#include typedef SDL_Event Event; typedef decltype(Event::type) _SDLEventType_;