summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/sdlinc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/sdl/sdlinc.h')
-rw-r--r--src/osd/sdl/sdlinc.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/osd/sdl/sdlinc.h b/src/osd/sdl/sdlinc.h
new file mode 100644
index 00000000000..69cc396b71a
--- /dev/null
+++ b/src/osd/sdl/sdlinc.h
@@ -0,0 +1,20 @@
+#ifndef _sdlinc_h_
+#define _sdlinc_h_
+
+#if (SDLMAME_SDL2)
+#include <SDL2/SDL.h>
+#include <SDL2/SDL_version.h>
+// on win32 this includes windows.h by itself and breaks us!
+#ifndef SDLMAME_WIN32
+#include <SDL2/SDL_syswm.h>
+#endif
+#else
+#include <SDL/SDL.h>
+#include <SDL/SDL_version.h>
+// on win32 this includes windows.h by itself and breaks us!
+#ifndef SDLMAME_WIN32
+#include <SDL/SDL_syswm.h>
+#endif
+#endif
+
+#endif