summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/osd_opengl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/sdl/osd_opengl.h')
-rw-r--r--src/osd/sdl/osd_opengl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/osd/sdl/osd_opengl.h b/src/osd/sdl/osd_opengl.h
index 60e646bb60c..c84d0a94139 100644
--- a/src/osd/sdl/osd_opengl.h
+++ b/src/osd/sdl/osd_opengl.h
@@ -15,14 +15,22 @@
/* equivalent to #include <GL/gl.h>
* #include <GL/glext.h>
*/
+ #if (SDLMAME_SDL2)
+ #include <SDL2/SDL_version.h>
+ #else
#include <SDL/SDL_version.h>
+ #endif
#if (SDL_VERSION_ATLEAST(1,2,10))
#if defined(SDLMAME_WIN32)
// Avoid that winnt.h (included via sdl_opengl.h, windows.h, windef.h includes intrin.h
#define __INTRIN_H_
#endif
+ #if (SDLMAME_SDL2)
+ #include <SDL2/SDL_opengl.h>
+ #else
#include <SDL/SDL_opengl.h>
+ #endif
#else
/*
* SDL 1.2.9 does not provide everything we need