aboutsummaryrefslogtreecommitdiff
path: root/libxcb
diff options
context:
space:
mode:
Diffstat (limited to 'libxcb')
-rw-r--r--libxcb/src/xcb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libxcb/src/xcb.h b/libxcb/src/xcb.h
index 1b32ccad6..18704c3f2 100644
--- a/libxcb/src/xcb.h
+++ b/libxcb/src/xcb.h
@@ -52,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