From 9aaeb182048588c0b6bd04b97ee48d1ebe536837 Mon Sep 17 00:00:00 2001 From: mathieu _alkama_ m Date: Sun, 7 Feb 2016 22:07:53 +0100 Subject: [PATCH] Fix: (for Linux builds) adding missing headers. --- ogl_editor/CMakeLists.txt | 6 ------ ogl_editor/src/Editor.c | 5 ++++- ogl_editor/src/linux/main.c | 1 + 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ogl_editor/CMakeLists.txt b/ogl_editor/CMakeLists.txt index f9619e8..94cf9d5 100755 --- a/ogl_editor/CMakeLists.txt +++ b/ogl_editor/CMakeLists.txt @@ -23,12 +23,6 @@ elseif (MSVC) endif () ############################################################################## -# SDL (linux only) -if (UNIX AND NOT APPLE) - -endif () - -############################################################################## # MXML file(GLOB RKT_MXML_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/external/mxml/*.c diff --git a/ogl_editor/src/Editor.c b/ogl_editor/src/Editor.c index 9bfe48e..b43a267 100644 --- a/ogl_editor/src/Editor.c +++ b/ogl_editor/src/Editor.c @@ -18,7 +18,10 @@ #include "../../lib/base.h" #include #if defined(_WIN32) -#include + #include +#else + #include + #include #endif enum { diff --git a/ogl_editor/src/linux/main.c b/ogl_editor/src/linux/main.c index 6a9946c..45275b4 100644 --- a/ogl_editor/src/linux/main.c +++ b/ogl_editor/src/linux/main.c @@ -1,6 +1,7 @@ #include "SDL.h" #include #include +#include #include "Editor.h" #include "Menu.h"