diff options
Diffstat (limited to 'libxcb/src/xcb.h')
-rw-r--r-- | libxcb/src/xcb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libxcb/src/xcb.h b/libxcb/src/xcb.h index c17a2ef79..ec5cd3301 100644 --- a/libxcb/src/xcb.h +++ b/libxcb/src/xcb.h @@ -37,6 +37,7 @@ #ifndef _WIN32 #include <sys/uio.h> +#define XCB_EXTERN extern #else #include "xcb_windefs.h" #endif @@ -51,7 +52,11 @@ extern "C" { * @file xcb.h */ +#ifdef _MSC_VER +#define XCB_PACKED +#else #define XCB_PACKED __attribute__((__packed__)) +#endif /** * @defgroup XCB_Core_API XCB Core API |