changeset 288:e2f286781180

Use more glanular header includes from SDL, enables us to succesfully link binaries without the SDL dependancy (where it is not actually needed) under Windows.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 11 Oct 2012 11:10:30 +0300
parents 1e89cd081956
children 4d053d9e6439
files dmlib.h dmsimple.h
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dmlib.h	Thu Oct 11 11:09:26 2012 +0300
+++ b/dmlib.h	Thu Oct 11 11:10:30 2012 +0300
@@ -7,7 +7,11 @@
 #ifndef DMLIB_H
 #define DMLIB_H
 
-#include <SDL.h>
+#include <SDL_config.h>
+#include <SDL_endian.h>
+#include <SDL_types.h>
+#include <SDL_mutex.h>
+#include <SDL_video.h>
 #include <stdarg.h>
 
 #ifdef DM_USE_ASSERTS
--- a/dmsimple.h	Thu Oct 11 11:09:26 2012 +0300
+++ b/dmsimple.h	Thu Oct 11 11:10:30 2012 +0300
@@ -1,6 +1,7 @@
 #ifndef DMSIMPLE_H
 #define DMSIMPLE_H
 
+#include <SDL.h>
 #include "dmlib.h"
 #include "dmargs.h"
 #include "dmres.h"