X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Fxcb.h;h=f720469ec9f4c96790a846a6cb3c05c54f1939b7;hb=b7c96681b2bfc968b198058122c93050feb7927e;hp=c7084ff9d0ba7970ad702a2d0d0f5314f9cbd7e5;hpb=829188cdd6274b5b5271dff5612b30c978a61a38;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb.h b/src/xcb.h index c7084ff..f720469 100644 --- a/src/xcb.h +++ b/src/xcb.h @@ -25,12 +25,15 @@ * authorization from the authors. */ -#ifndef __XCB_H -#define __XCB_H +#ifndef __XCB_H__ +#define __XCB_H__ #include -/* TODO: check for stdint in config? (HAVE_STDINT) fallback? */ +#if defined(__solaris__) +#include +#else #include +#endif /* FIXME: these names conflict with those defined in Xmd.h. */ #ifndef XMD_H @@ -44,14 +47,15 @@ typedef int16_t INT16; typedef int32_t INT32; #endif /* XMD_H */ -#include #include #include + #ifdef __cplusplus extern "C" { #endif + #if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) #define deprecated __attribute__((__deprecated__)) #else @@ -154,8 +158,7 @@ typedef struct { } XCBVoidCookie; -/* Include the generated xproto and xcb_types headers. */ -#include "xcb_types.h" +/* Include the generated xproto header. */ #include "xproto.h" @@ -534,4 +537,5 @@ XCBGenericIter XCBConnSetupSuccessRepEnd(XCBSetupIter i) deprecated; } #endif -#endif + +#endif /* __XCB_H__ */