Add CMake build and cross-platform cleanup
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
//ML Detection Extension
|
||||
#ifdef _DEBUG
|
||||
#if defined(_MSC_VER) && defined(_DEBUG)
|
||||
#define _CRTDBG_MAP_ALLOC
|
||||
#include <cstdlib>
|
||||
#include <crtdbg.h>
|
||||
@@ -9,6 +9,7 @@
|
||||
#define new DEBUG_NEW
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && !defined(MOTHERLOAD_DISABLE_MSVC_LINK_PRAGMAS)
|
||||
// SDL libs
|
||||
#pragma comment(lib, "SDL2.lib")
|
||||
#pragma comment(lib, "SDL2main.lib")
|
||||
@@ -21,16 +22,21 @@
|
||||
#pragma comment(lib, "SDL2_image.lib")
|
||||
#pragma comment(lib, "SDL2_ttf.lib")
|
||||
#pragma comment(lib, "SDL2_mixer.lib")
|
||||
#endif
|
||||
|
||||
// SDL and OpenGL Includes
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(disable : 26812)
|
||||
#pragma warning(disable : 4820)
|
||||
#endif
|
||||
#include <SDL.h>
|
||||
#include <SDL_opengl.h>
|
||||
#include <SDL_ttf.h>
|
||||
#include <SDL_mixer.h>
|
||||
#include <SDL_image.h>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(default : 26812)
|
||||
#pragma warning(default : 4820)
|
||||
#endif
|
||||
#include "structs.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user