Fix compile error in VS. Include path changed.

This commit is contained in:
Kirigaya Kazuto 2017-04-10 21:14:12 +08:00
parent 7f238b9935
commit 94a8afd09c

View File

@ -1,9 +1,20 @@
#pragma once #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>
#else
/// CodeBlocks (MinGW Compiler)
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
#undef main #undef main
#include <SDL2/SDL_image.h> #include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h> #include <SDL2/SDL_ttf.h>
#include <SDL2/SDL_mixer.h> #include <SDL2/SDL_mixer.h>
#endif
#include <string> #include <string>
#include <memory> #include <memory>