Commit 9618380b authored by Mike Gabriel's avatar Mike Gabriel

X11/nx-X11 clear-up: More places where we need to explicitly distinguish between…

X11/nx-X11 clear-up: More places where we need to explicitly distinguish between X11 and nx-X11 namespace regarding header include paths.
parent eafc94f1
...@@ -75,8 +75,8 @@ extern "C" { ...@@ -75,8 +75,8 @@ extern "C" {
#ifdef XFree86Server #ifdef XFree86Server
#include "xmesa_xf86.h" #include "xmesa_xf86.h"
#else #else
#include <X11/Xlib.h> #include <nx-X11/Xlib.h>
#include <X11/Xutil.h> #include <nx-X11/Xutil.h>
#include "xmesa_x.h" #include "xmesa_x.h"
#endif #endif
#include "GL/gl.h" #include "GL/gl.h"
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
# include "imports.h" # include "imports.h"
# define __glXMemset memset # define __glXMemset memset
#else #else
# include <X11/X.h> # include <nx-X11/X.h>
# include <GL/glx.h> # include <GL/glx.h>
# include "GL/glxint.h" # include "GL/glxint.h"
...@@ -51,7 +51,7 @@ extern void __glXFree( void * ptr ); ...@@ -51,7 +51,7 @@ extern void __glXFree( void * ptr );
# define _mesa_malloc(b) __glXMalloc(b) # define _mesa_malloc(b) __glXMalloc(b)
# define _mesa_free(m) __glXFree(m) # define _mesa_free(m) __glXFree(m)
# else # else
# include <X11/Xlibint.h> # include <nx-X11/Xlibint.h>
# define __glXMemset memset # define __glXMemset memset
# define _mesa_malloc(b) Xmalloc(b) # define _mesa_malloc(b) Xmalloc(b)
# define _mesa_free(m) Xfree(m) # define _mesa_free(m) Xfree(m)
......
...@@ -43,12 +43,12 @@ ...@@ -43,12 +43,12 @@
#else #else
# include <X11/Xlib.h> # include <nx-X11/Xlib.h>
# include <X11/Xutil.h> # include <nx-X11/Xutil.h>
# ifdef USE_XSHM /* was SHM */ # ifdef USE_XSHM /* was SHM */
# include <sys/ipc.h> # include <sys/ipc.h>
# include <sys/shm.h> # include <sys/shm.h>
# include <X11/extensions/XShm.h> # include <nx-X11/extensions/XShm.h>
# endif # endif
# include <GL/glx.h> # include <GL/glx.h>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
# include "GL/xf86glx.h" # include "GL/xf86glx.h"
# include "xf86glx_util.h" # include "xf86glx_util.h"
#elif defined(USE_XSHM) #elif defined(USE_XSHM)
# include <X11/extensions/XShm.h> # include <nx-X11/extensions/XShm.h>
#endif #endif
#include "GL/xmesa.h" #include "GL/xmesa.h"
#include "mtypes.h" #include "mtypes.h"
......
...@@ -180,7 +180,7 @@ typedef CRITICAL_SECTION _glthread_Mutex; ...@@ -180,7 +180,7 @@ typedef CRITICAL_SECTION _glthread_Mutex;
* We wrap it again for GL. * We wrap it again for GL.
*/ */
#ifdef USE_XTHREADS #ifdef USE_XTHREADS
#include <X11/Xthreads.h> #include <nx-X11/Xthreads.h>
typedef struct { typedef struct {
xthread_key_t key; xthread_key_t key;
......
...@@ -81,7 +81,7 @@ typedef unsigned long Atom; /* Also in Xdefs.h */ ...@@ -81,7 +81,7 @@ typedef unsigned long Atom; /* Also in Xdefs.h */
typedef unsigned long VisualID; typedef unsigned long VisualID;
typedef unsigned long Time; typedef unsigned long Time;
#else #else
# include <X11/Xmd.h> # include <nx-X11/Xmd.h>
# ifndef _XTYPEDEF_XID # ifndef _XTYPEDEF_XID
# define _XTYPEDEF_XID # define _XTYPEDEF_XID
typedef CARD32 XID; typedef CARD32 XID;
......
...@@ -72,8 +72,8 @@ in this Software without prior written authorization from The Open Group. ...@@ -72,8 +72,8 @@ in this Software without prior written authorization from The Open Group.
#ifndef _XOS_R_H_ #ifndef _XOS_R_H_
# define _XOS_R_H_ # define _XOS_R_H_
# include <X11/Xos.h> # include <nx-X11/Xos.h>
# include <X11/Xfuncs.h> # include <nx-X11/Xfuncs.h>
# ifndef X_NOT_POSIX # ifndef X_NOT_POSIX
# ifdef _POSIX_SOURCE # ifdef _POSIX_SOURCE
...@@ -107,7 +107,7 @@ extern LockInfoPtr _Xglobal_lock; ...@@ -107,7 +107,7 @@ extern LockInfoPtr _Xglobal_lock;
# endif # endif
# if defined(XTHREADS_WARN) || defined(XTHREADS_FILE_LINE) # if defined(XTHREADS_WARN) || defined(XTHREADS_FILE_LINE)
# ifndef XAllocIDs /* Xlibint.h does not have multiple include protection */ # ifndef XAllocIDs /* Xlibint.h does not have multiple include protection */
# include <X11/Xfuncproto.h> /* for NeedFunctionPrototypes */ # include <nx-X11/Xfuncproto.h> /* for NeedFunctionPrototypes */
extern void (*_XLockMutex_fn)( extern void (*_XLockMutex_fn)(
# if NeedFunctionPrototypes # if NeedFunctionPrototypes
LockInfoPtr /* lock */, char * /* file */, int /* line */ LockInfoPtr /* lock */, char * /* file */, int /* line */
...@@ -129,7 +129,7 @@ extern void (*_XUnlockMutex_fn)( ...@@ -129,7 +129,7 @@ extern void (*_XUnlockMutex_fn)(
# endif # endif
# else # else
# ifndef XAllocIDs /* Xlibint.h does not have multiple include protection */ # ifndef XAllocIDs /* Xlibint.h does not have multiple include protection */
# include <X11/Xfuncproto.h> /* for NeedFunctionPrototypes */ # include <nx-X11/Xfuncproto.h> /* for NeedFunctionPrototypes */
extern void (*_XLockMutex_fn)( extern void (*_XLockMutex_fn)(
# if NeedFunctionPrototypes # if NeedFunctionPrototypes
LockInfoPtr /* lock */ LockInfoPtr /* lock */
...@@ -155,7 +155,7 @@ extern void (*_XUnlockMutex_fn)( ...@@ -155,7 +155,7 @@ extern void (*_XUnlockMutex_fn)(
extern void (*_XtProcessLock)(void); extern void (*_XtProcessLock)(void);
# endif # endif
# ifndef _XtintrinsicP_h # ifndef _XtintrinsicP_h
# include <X11/Xfuncproto.h> /* for NeedFunctionPrototypes */ # include <nx-X11/Xfuncproto.h> /* for NeedFunctionPrototypes */
extern void XtProcessLock( extern void XtProcessLock(
# if NeedFunctionPrototypes # if NeedFunctionPrototypes
void void
......
...@@ -34,7 +34,7 @@ from The Open Group. ...@@ -34,7 +34,7 @@ from The Open Group.
* You may need to redefine these for various other operating systems. * You may need to redefine these for various other operating systems.
*/ */
#include <X11/Xos.h> #include <nx-X11/Xos.h>
#include <sys/stat.h> #include <sys/stat.h>
#define GetSizeOfFile(fd,size) \ #define GetSizeOfFile(fd,size) \
......
...@@ -51,7 +51,7 @@ SOFTWARE. ...@@ -51,7 +51,7 @@ SOFTWARE.
#ifndef _XUTIL_H_ #ifndef _XUTIL_H_
#define _XUTIL_H_ #define _XUTIL_H_
/* You must include <X11/Xlib.h> before including this file */ /* You must include <nx-X11/Xlib.h> before including this file */
#include <nx-X11/Xlib.h> #include <nx-X11/Xlib.h>
/* /*
......
...@@ -31,7 +31,7 @@ PERFORMANCE OF THIS SOFTWARE. ...@@ -31,7 +31,7 @@ PERFORMANCE OF THIS SOFTWARE.
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif #endif
#include <X11/Xatom.h> #include <nx-X11/Xatom.h>
#define NEED_EVENTS #define NEED_EVENTS
#include "Xlibint.h" #include "Xlibint.h"
#include "Xlcint.h" #include "Xlcint.h"
......
...@@ -45,8 +45,8 @@ typedef struct xauth { ...@@ -45,8 +45,8 @@ typedef struct xauth {
#ifndef _XAUTH_STRUCT_ONLY #ifndef _XAUTH_STRUCT_ONLY
# include <X11/Xfuncproto.h> # include <nx-X11/Xfuncproto.h>
# include <X11/Xfuncs.h> # include <nx-X11/Xfuncs.h>
# include <stdio.h> # include <stdio.h>
......
...@@ -54,8 +54,8 @@ from The Open Group. ...@@ -54,8 +54,8 @@ from The Open Group.
#ifndef _XTRANS_H_ #ifndef _XTRANS_H_
#define _XTRANS_H_ #define _XTRANS_H_
#include <X11/Xfuncproto.h> #include <nx-X11/Xfuncproto.h>
#include <X11/Xos.h> #include <nx-X11/Xos.h>
#ifndef WIN32 #ifndef WIN32
#ifndef Lynx #ifndef Lynx
......
...@@ -68,7 +68,7 @@ from The Open Group. ...@@ -68,7 +68,7 @@ from The Open Group.
#undef Status #undef Status
#define Status int #define Status int
#undef BOOL #undef BOOL
#include <X11/Xw32defs.h> #include <nx-X11/Xw32defs.h>
#undef close #undef close
#define close closesocket #define close closesocket
#endif /* WIN32 */ #endif /* WIN32 */
......
...@@ -84,7 +84,7 @@ from the copyright holders. ...@@ -84,7 +84,7 @@ from the copyright holders.
#include <ctype.h> #include <ctype.h>
#ifdef XTHREADS #ifdef XTHREADS
#include <X11/Xthreads.h> #include <nx-X11/Xthreads.h>
#endif #endif
#ifndef WIN32 #ifndef WIN32
...@@ -98,7 +98,7 @@ from the copyright holders. ...@@ -98,7 +98,7 @@ from the copyright holders.
#if defined(TCPCONN) || defined(UNIXCONN) #if defined(TCPCONN) || defined(UNIXCONN)
#define X_INCLUDE_NETDB_H #define X_INCLUDE_NETDB_H
#define XOS_USE_NO_LOCKING #define XOS_USE_NO_LOCKING
#include <X11/Xos_r.h> #include <nx-X11/Xos_r.h>
#endif #endif
#ifdef UNIXCONN #ifdef UNIXCONN
...@@ -142,9 +142,9 @@ from the copyright holders. ...@@ -142,9 +142,9 @@ from the copyright holders.
#else /* !WIN32 */ #else /* !WIN32 */
#include <X11/Xwinsock.h> #include <nx-X11/Xwinsock.h>
#include <X11/Xwindows.h> #include <nx-X11/Xwindows.h>
#include <X11/Xw32defs.h> #include <nx-X11/Xw32defs.h>
#undef close #undef close
#define close closesocket #define close closesocket
#define ECONNREFUSED WSAECONNREFUSED #define ECONNREFUSED WSAECONNREFUSED
...@@ -157,7 +157,7 @@ from the copyright holders. ...@@ -157,7 +157,7 @@ from the copyright holders.
#define EINTR WSAEINTR #define EINTR WSAEINTR
#define X_INCLUDE_NETDB_H #define X_INCLUDE_NETDB_H
#define XOS_USE_MTSAFE_NETDBAPI #define XOS_USE_MTSAFE_NETDBAPI
#include <X11/Xos_r.h> #include <nx-X11/Xos_r.h>
#endif /* WIN32 */ #endif /* WIN32 */
#if defined(SO_DONTLINGER) && defined(SO_LINGER) #if defined(SO_DONTLINGER) && defined(SO_LINGER)
......
...@@ -59,7 +59,7 @@ from The Open Group. ...@@ -59,7 +59,7 @@ from The Open Group.
*/ */
#ifdef XTHREADS #ifdef XTHREADS
#include <X11/Xthreads.h> #include <nx-X11/Xthreads.h>
#endif #endif
#ifdef X11_t #ifdef X11_t
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#include "os.h" #include "os.h"
#include "dixstruct.h" #include "dixstruct.h"
#include "extnsionst.h" #include "extnsionst.h"
#include <X11/extensions/damageproto.h> #include <nx-X11/extensions/damageproto.h>
#include "windowstr.h" #include "windowstr.h"
#include "selection.h" #include "selection.h"
#include "scrnintstr.h" #include "scrnintstr.h"
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#include <dix-config.h> #include <dix-config.h>
#endif #endif
#include <X11/X.h> #include <nx-X11/X.h>
#include "scrnintstr.h" #include "scrnintstr.h"
#include "windowstr.h" #include "windowstr.h"
#include <X11/fonts/font.h> #include <X11/fonts/font.h>
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
#ifndef _XRANDR_H_ #ifndef _XRANDR_H_
#define _XRANDR_H_ #define _XRANDR_H_
#include <X11/extensions/randr.h> #include <nx-X11/extensions/randr.h>
#include <nx-X11/Xfuncproto.h> #include <nx-X11/Xfuncproto.h>
_XFUNCPROTOBEGIN _XFUNCPROTOBEGIN
......
...@@ -37,7 +37,7 @@ in this Software without prior written authorization from The Open Group. ...@@ -37,7 +37,7 @@ in this Software without prior written authorization from The Open Group.
#endif #endif
#define NEED_EVENTS #define NEED_EVENTS
# include <X11/X.h> # include <nx-X11/X.h>
# include "misc.h" # include "misc.h"
# include "input.h" # include "input.h"
# include "cursorstr.h" # include "cursorstr.h"
......
...@@ -35,9 +35,9 @@ in this Software without prior written authorization from The Open Group. ...@@ -35,9 +35,9 @@ in this Software without prior written authorization from The Open Group.
*/ */
# define NEED_EVENTS # define NEED_EVENTS
# include <X11/X.h> # include <nx-X11/X.h>
# include <X11/Xmd.h> # include <nx-X11/Xmd.h>
# include <X11/Xproto.h> # include <nx-X11/Xproto.h>
# include "misc.h" # include "misc.h"
# include "windowstr.h" # include "windowstr.h"
# include "pixmapstr.h" # include "pixmapstr.h"
......
...@@ -52,9 +52,9 @@ SOFTWARE. ...@@ -52,9 +52,9 @@ SOFTWARE.
#include <dix-config.h> #include <dix-config.h>
#endif #endif
#include <X11/X.h> #include <nx-X11/X.h>
#include <X11/Xmd.h> #include <nx-X11/Xmd.h>
#include <X11/Xproto.h> #include <nx-X11/Xproto.h>
#include "misc.h" #include "misc.h"
#include <X11/fonts/fontstruct.h> #include <X11/fonts/fontstruct.h>
#include "dixfontstr.h" #include "dixfontstr.h"
......
...@@ -35,9 +35,9 @@ in this Software without prior written authorization from The Open Group. ...@@ -35,9 +35,9 @@ in this Software without prior written authorization from The Open Group.
#endif #endif
# define NEED_EVENTS # define NEED_EVENTS
# include <X11/X.h> # include <nx-X11/X.h>
# include <X11/Xmd.h> # include <nx-X11/Xmd.h>
# include <X11/Xproto.h> # include <nx-X11/Xproto.h>
# include "misc.h" # include "misc.h"
# include "windowstr.h" # include "windowstr.h"
# include "pixmapstr.h" # include "pixmapstr.h"
......
...@@ -59,9 +59,9 @@ SOFTWARE. ...@@ -59,9 +59,9 @@ SOFTWARE.
#include <dix-config.h> #include <dix-config.h>
#endif #endif
#include <X11/X.h> #include <nx-X11/X.h>
#include <X11/Xmd.h> #include <nx-X11/Xmd.h>
#include <X11/Xproto.h> #include <nx-X11/Xproto.h>
#include "misc.h" #include "misc.h"
#include "gcstruct.h" #include "gcstruct.h"
#include <X11/fonts/fontstruct.h> #include <X11/fonts/fontstruct.h>
......
...@@ -36,8 +36,8 @@ in this Software without prior written authorization from The Open Group. ...@@ -36,8 +36,8 @@ in this Software without prior written authorization from The Open Group.
#include <dix-config.h> #include <dix-config.h>
#endif #endif
# include <X11/X.h> # include <nx-X11/X.h>
# include <X11/Xproto.h> # include <nx-X11/Xproto.h>
# include "misc.h" # include "misc.h"
# include "pixmapstr.h" # include "pixmapstr.h"
# include "input.h" # include "input.h"
......
...@@ -96,7 +96,7 @@ Equipment Corporation. ...@@ -96,7 +96,7 @@ Equipment Corporation.
#include <dix-config.h> #include <dix-config.h>
#endif #endif
#include <X11/X.h> #include <nx-X11/X.h>
#include "scrnintstr.h" #include "scrnintstr.h"
#include "validate.h" #include "validate.h"
#include "windowstr.h" #include "windowstr.h"
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include <dix-config.h> #include <dix-config.h>
#endif #endif
#include <X11/X.h> #include <nx-X11/X.h>
#include "scrnintstr.h" #include "scrnintstr.h"
#include "windowstr.h" #include "windowstr.h"
#include <X11/fonts/font.h> #include <X11/fonts/font.h>
......
...@@ -176,7 +176,7 @@ Win32System(const char *cmdline) ...@@ -176,7 +176,7 @@ Win32System(const char *cmdline)
# define TRANS_SERVER # define TRANS_SERVER
# define PRMSG(lvl,x,a,b,c) \ # define PRMSG(lvl,x,a,b,c) \
if (lvl <= 1) { LogMessage(X_ERROR,x,a,b,c); } else ((void)0) if (lvl <= 1) { LogMessage(X_ERROR,x,a,b,c); } else ((void)0)
# include <X11/Xtrans/Xtransutil.c> # include <nx-X11/Xtrans/Xtransutil.c>
# ifndef XKM_OUTPUT_DIR_MODE # ifndef XKM_OUTPUT_DIR_MODE
# define XKM_OUTPUT_DIR_MODE 0755 # define XKM_OUTPUT_DIR_MODE 0755
# endif # endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment