diff src/video/dga/SDL_dgavideo.h @ 4144:904defc0792e SDL-1.2

Fix X11 build issue with multiple includes of Xlibint.h ...
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 31 Mar 2008 05:27:21 +0000
parents 568c9b3c0167
children a1b03ba2fcd0
line wrap: on
line diff
--- a/src/video/dga/SDL_dgavideo.h	Wed Mar 12 22:01:48 2008 +0000
+++ b/src/video/dga/SDL_dgavideo.h	Mon Mar 31 05:27:21 2008 +0000
@@ -25,7 +25,13 @@
 #define _SDL_dgavideo_h
 
 #include <X11/Xlib.h>
+
+/* Apparently some X11 systems can't include this multiple times... */
+#ifndef SDL_INCLUDED_XLIBINT_H
+#define SDL_INCLUDED_XLIBINT_H 1
 #include <X11/Xlibint.h>
+#endif
+
 #include <X11/Xproto.h>
 
 #include "SDL_mouse.h"