Use _X_DEPRECATED instead of 'deprecated' to fix a build error; this is more correct than using __attribute__((deprecated)), as _X_DEPRECATED will be #ifdef'd away if not using gcc. diff --git a/xcb/src/xcbxlib.h b/xcb/src/xcbxlib.h index 4ceb03e..cbee247 100644 --- a/xcb/src/xcbxlib.h +++ b/xcb/src/xcbxlib.h @@ -28,11 +28,12 @@ #ifndef __XCBXLIB_H #define __XCBXLIB_H +#include #include #include "xcb.h" /* This function must be called with the IOLock held. */ -unsigned int XCBGetQueuedRequestRead(XCBConnection *c) deprecated; +unsigned int XCBGetQueuedRequestRead(XCBConnection *c) _X_DEPRECATED; /* This function must be called with the IOLock held. */ unsigned int XCBGetRequestSent(XCBConnection *c);