mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
Add Configure Header
This commit is contained in:
parent
6901b0054c
commit
65435476b6
23
MiniEngine.h
23
MiniEngine.h
|
@ -1,31 +1,10 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include "MiniEngine_Config.h"
|
||||||
#ifdef _MSC_VER
|
|
||||||
/// Visual Studio (VC++ Compiler)
|
|
||||||
#include <SDL.h>
|
|
||||||
#undef main
|
|
||||||
#include <SDL_image.h>
|
|
||||||
#include <SDL_ttf.h>
|
|
||||||
#include <SDL_mixer.h>
|
|
||||||
|
|
||||||
/// VC++ does not implied C++ exception. Use this to ignore compile warning on this.
|
|
||||||
#pragma warning (disable:4290)
|
|
||||||
#else
|
|
||||||
/// CodeBlocks (MinGW Compiler)
|
|
||||||
#include <SDL2/SDL.h>
|
|
||||||
#undef main
|
|
||||||
#include <SDL2/SDL_image.h>
|
|
||||||
#include <SDL2/SDL_ttf.h>
|
|
||||||
#include <SDL2/SDL_mixer.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#define _DECL_DEPRECATED [[deprecated]]
|
|
||||||
|
|
||||||
namespace MiniEngine
|
namespace MiniEngine
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
23
MiniEngine_Config.h
Normal file
23
MiniEngine_Config.h
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
/// Visual Studio (VC++ Compiler)
|
||||||
|
#include <SDL.h>
|
||||||
|
#undef main
|
||||||
|
#include <SDL_image.h>
|
||||||
|
#include <SDL_ttf.h>
|
||||||
|
#include <SDL_mixer.h>
|
||||||
|
|
||||||
|
/// VC++ does not implied C++ exception. Use this to ignore compile warning on this.
|
||||||
|
#pragma warning (disable:4290)
|
||||||
|
#else
|
||||||
|
/// CodeBlocks (MinGW Compiler)
|
||||||
|
#include <SDL2/SDL.h>
|
||||||
|
#undef main
|
||||||
|
#include <SDL2/SDL_image.h>
|
||||||
|
#include <SDL2/SDL_ttf.h>
|
||||||
|
#include <SDL2/SDL_mixer.h>
|
||||||
|
|
||||||
|
#endif /// End of #ifdef _MSC_VER
|
||||||
|
|
||||||
|
#define _DECL_DEPRECATED [[deprecated]]
|
|
@ -1,7 +1,8 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "MiniEngine.h"
|
#include "MiniEngine_Config.h"
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <list>
|
#include <list>
|
||||||
|
#include <functional>
|
||||||
|
|
||||||
typedef SDL_Event Event;
|
typedef SDL_Event Event;
|
||||||
typedef decltype(Event::type) _SDLEventType_;
|
typedef decltype(Event::type) _SDLEventType_;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user