Skip to content

Commit

Permalink
Fix X11 build issue with multiple includes of Xlibint.h ...
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 31, 2008
1 parent 16e9d32 commit 56e48a1
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/video/Xext/XME/xme.c
Expand Up @@ -14,7 +14,12 @@
#define NEED_EVENTS
#define NEED_REPLIES

/* 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/Xthreads.h>
#include <X11/Xmd.h>
#include <X11/Xproto.h>
Expand Down
5 changes: 5 additions & 0 deletions src/video/Xext/Xinerama/Xinerama.c
Expand Up @@ -28,7 +28,12 @@ Equipment Corporation.
#define NEED_EVENTS
#define NEED_REPLIES

/* 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/Xutil.h>
#include "../extensions/Xext.h"
#include "../extensions/extutil.h" /* in ../include */
Expand Down
5 changes: 5 additions & 0 deletions src/video/Xext/Xv/Xvlibint.h
Expand Up @@ -43,7 +43,12 @@ SOFTWARE.

#define NEED_REPLIES

/* 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 "../extensions/Xvproto.h"
#include "../extensions/Xvlib.h"

Expand Down
5 changes: 5 additions & 0 deletions src/video/Xext/Xxf86dga/XF86DGA.c
Expand Up @@ -59,7 +59,12 @@ Copyright (c) 1995,1996 The XFree86 Project, Inc
#define NEED_EVENTS
#define NEED_REPLIES

/* 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 "../extensions/xf86dga.h"
#include "../extensions/xf86dgastr.h"
#include "../extensions/Xext.h"
Expand Down
5 changes: 5 additions & 0 deletions src/video/Xext/Xxf86dga/XF86DGA2.c
Expand Up @@ -17,7 +17,12 @@ Copyright (c) 1995,1996 The XFree86 Project, Inc
#define NEED_EVENTS
#define NEED_REPLIES

/* 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 "../extensions/xf86dga.h"
#include "../extensions/xf86dgastr.h"
#include "../extensions/Xext.h"
Expand Down
5 changes: 4 additions & 1 deletion src/video/Xext/Xxf86vm/XF86VMode.c
Expand Up @@ -37,12 +37,15 @@ from Kaleb S. KEITHLEY.
#define NEED_REPLIES

#ifndef XBUILD_IN_CLIENT
/* 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 "../extensions/xf86vmstr.h"
#include "../extensions/Xext.h"
#include "../extensions/extutil.h"
#else
#include "lib/X11/Xlibint.h"
#include "include/extensions/xf86vmstr.h"
#include "include/extensions/Xext.h"
#include "include/extensions/extutil.h"
Expand Down
6 changes: 6 additions & 0 deletions src/video/dga/SDL_dgavideo.h
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions src/video/x11/SDL_x11dyn.h
Expand Up @@ -27,7 +27,13 @@
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.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 "../Xext/extensions/Xext.h"
Expand Down

0 comments on commit 56e48a1

Please sign in to comment.