Commit ef5565f8 authored by Ulrich Sibiller's avatar Ulrich Sibiller

improve header guards

Upstream has changed the header guards. We adapt them to prevent double inclusion.
parent 59307314
#ifndef _IMUTIL_H_ #if !defined(_X11_IMUTIL_H_) && !defined(_IM_UTIL_H_)
#define _X11_IMUTIL_H_
#define _IMUTIL_H_ #define _IMUTIL_H_
extern int extern int
...@@ -27,4 +28,4 @@ extern void ...@@ -27,4 +28,4 @@ extern void
_XInitImageFuncPtrs( _XInitImageFuncPtrs(
register XImage *image); register XImage *image);
#endif /* _IMUTIL_H_ */ #endif /* !defined(_X11_IMUTIL_H_) && !defined(_IM_UTIL_H_) */
...@@ -24,7 +24,8 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -24,7 +24,8 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/ ********************************************************/
#ifndef _XKBLIB_H_ #if !defined(_X11_XKBLIB_H_) && !defined(_XKBLIB_H_)
#define _X11_XKBLIB_H_
#define _XKBLIB_H_ #define _XKBLIB_H_
#include <nx-X11/Xlib.h> #include <nx-X11/Xlib.h>
...@@ -1146,4 +1147,4 @@ extern void XkbUpdateKeyTypeVirtualMods( ...@@ -1146,4 +1147,4 @@ extern void XkbUpdateKeyTypeVirtualMods(
_XFUNCPROTOEND _XFUNCPROTOEND
#endif /* _XKBLIB_H_ */ #endif /* !defined(_X11_XKBLIB_H_) && !defined(_XKBLIB_H_) */
...@@ -26,7 +26,8 @@ ...@@ -26,7 +26,8 @@
* DESCRIPTION * DESCRIPTION
* Public include file for X Color Management System * Public include file for X Color Management System
*/ */
#ifndef _XCMS_H_ #if !defined(_X11_XCMS_H_) && !defined(_XCMS_H_)
#define _X11_XCMS_H_
#define _XCMS_H_ #define _XCMS_H_
#include <nx-X11/Xlib.h> #include <nx-X11/Xlib.h>
...@@ -800,4 +801,4 @@ extern Visual *XcmsVisualOfCCC ( ...@@ -800,4 +801,4 @@ extern Visual *XcmsVisualOfCCC (
_XFUNCPROTOEND _XFUNCPROTOEND
#endif /* _XCMS_H_ */ #endif /* !defined(_X11_XCMS_H_) && !defined(_XCMS_H_) */
...@@ -30,7 +30,8 @@ in this Software without prior written authorization from The Open Group. ...@@ -30,7 +30,8 @@ in this Software without prior written authorization from The Open Group.
* interface library (Xlib) to the X Window System Protocol (V11). * interface library (Xlib) to the X Window System Protocol (V11).
* Structures and symbols starting with "_" are private to the library. * Structures and symbols starting with "_" are private to the library.
*/ */
#ifndef _XLIB_H_ #if !defined(_X11_XLIB_H_) && !defined(_XLIB_H_)
#define _X11_XLIB_H_
#define _XLIB_H_ #define _XLIB_H_
#define XlibSpecificationRelease 6 #define XlibSpecificationRelease 6
...@@ -4041,4 +4042,4 @@ extern void XFreeEventData( ...@@ -4041,4 +4042,4 @@ extern void XFreeEventData(
_XFUNCPROTOEND _XFUNCPROTOEND
#endif /* _XLIB_H_ */ #endif /* #if !defined(_X11_XLIB_H_) && !defined(_XLIB_H_) */
...@@ -51,8 +51,9 @@ from The Open Group. ...@@ -51,8 +51,9 @@ from The Open Group.
*/ */
#ifndef _XLIBINT_H_ #if !defined(_X11_XLIBINT_H_) && !defined(_XLIBINT_H_)
#define _XLIBINT_H_ 1 #define _X11_XLIBINT_H_
#define _XLIBINT_H_
/* /*
* Xlibint.h - Header definition and support file for the internal * Xlibint.h - Header definition and support file for the internal
...@@ -1437,4 +1438,4 @@ extern void xlocaledir( ...@@ -1437,4 +1438,4 @@ extern void xlocaledir(
_XFUNCPROTOEND _XFUNCPROTOEND
#endif /* _XLIBINT_H_ */ #endif /* !defined(_X11_XLIBINT_H_) && !defined(_XLIBINT_H_) */
...@@ -26,7 +26,8 @@ from The Open Group. ...@@ -26,7 +26,8 @@ from The Open Group.
*/ */
#ifndef _XLOCALE_H_ #if !defined(_X11_XLOCALE_H_) && !defined(_XLOCALE_H_)
#define _X11_XLOCALE_H_
#define _XLOCALE_H_ #define _XLOCALE_H_
#include <nx-X11/Xfuncproto.h> #include <nx-X11/Xfuncproto.h>
...@@ -56,4 +57,4 @@ _XFUNCPROTOEND ...@@ -56,4 +57,4 @@ _XFUNCPROTOEND
#endif /* X_LOCALE */ #endif /* X_LOCALE */
#endif /* _XLOCALE_H_ */ #endif /* !defined(_X11_XLOCALE_H_) && !defined(_XLOCALE_H_) */
...@@ -45,7 +45,8 @@ SOFTWARE. ...@@ -45,7 +45,8 @@ SOFTWARE.
************************************************************************/ ************************************************************************/
#ifndef _XREGION_H #if !defined(_X11_XREGION_H_) && !defined(_XREGION_H)
#define _X11_XREGION_H_
#define _XREGION_H #define _XREGION_H
typedef struct { typedef struct {
...@@ -186,4 +187,4 @@ typedef struct _POINTBLOCK { ...@@ -186,4 +187,4 @@ typedef struct _POINTBLOCK {
struct _POINTBLOCK *next; struct _POINTBLOCK *next;
} POINTBLOCK; } POINTBLOCK;
#endif #endif /* !defined(_X11_XREGION_H_) && !defined(_XREGION_H) */
...@@ -46,7 +46,8 @@ SOFTWARE. ...@@ -46,7 +46,8 @@ SOFTWARE.
******************************************************************/ ******************************************************************/
#ifndef _XRESOURCE_H_ #if !defined(_X11_XRESOURCE_H_) && !defined(_XRESOURCE_H_)
#define _X11_XRESOURCE_H_
#define _XRESOURCE_H_ #define _XRESOURCE_H_
#ifndef _XP_PRINT_SERVER_ #ifndef _XP_PRINT_SERVER_
...@@ -354,5 +355,5 @@ extern void XrmParseCommand( ...@@ -354,5 +355,5 @@ extern void XrmParseCommand(
_XFUNCPROTOEND _XFUNCPROTOEND
#endif /* _XRESOURCE_H_ */ #endif /* !defined(_X11_XRESOURCE_H_) && !defined(_XRESOURCE_H_) */
/* DON'T ADD STUFF AFTER THIS #endif */ /* DON'T ADD STUFF AFTER THIS #endif */
...@@ -46,9 +46,9 @@ SOFTWARE. ...@@ -46,9 +46,9 @@ SOFTWARE.
******************************************************************/ ******************************************************************/
#if !defined(_XUTIL_H_) && !defined(_X11_XUTIL_H_) #if !defined(_X11_XUTIL_H_) && !defined(_XUTIL_H_)
#define _XUTIL_H_
#define _X11_XUTIL_H_ #define _X11_XUTIL_H_
#define _XUTIL_H_
/* You must include <nx-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>
...@@ -823,4 +823,4 @@ extern int XXorRegion( ...@@ -823,4 +823,4 @@ extern int XXorRegion(
_XFUNCPROTOEND _XFUNCPROTOEND
#endif /* _XUTIL_H_ */ #endif /* !defined(_X11_XUTIL_H_) && !defined(_XUTIL_H_) */
...@@ -26,6 +26,10 @@ from The Open Group. ...@@ -26,6 +26,10 @@ from The Open Group.
*/ */
#if !defined(_X11_CURSORFONT_H_) && !defined(_cursorfont_h_)
#define _X11_CURSORFONT_H_
#define _cursorfont_h_
#define XC_num_glyphs 154 #define XC_num_glyphs 154
#define XC_X_cursor 0 #define XC_X_cursor 0
#define XC_arrow 2 #define XC_arrow 2
...@@ -104,3 +108,5 @@ from The Open Group. ...@@ -104,3 +108,5 @@ from The Open Group.
#define XC_ur_angle 148 #define XC_ur_angle 148
#define XC_watch 150 #define XC_watch 150
#define XC_xterm 152 #define XC_xterm 152
#endif /* !defined(_X11_CURSORFONT_H_) && !defined(_cursorfont_h_) */
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