rnd-20000724-1-src
[rocksndiamonds.git] / src / sdl.h
index 69d2f20b299b589f90bb8b0d6ef770330e920e9a..7d7c1c114d971553b5904949c4a23c8063f6e701 100644 (file)
--- a/src/sdl.h
+++ b/src/sdl.h
 #define SDL_H
 
 #include "SDL.h"
-#include "SDL_image.h"
 
+#if SDL_MAJOR_VERSION >= 1 && SDL_MINOR_VERSION >= 1
+#include "SDL_image.h"
+#else
+#include "IMG.h"
+#endif
 
 /* SDL type definitions */