summaryrefslogtreecommitdiff
path: root/include/X11/IntrinsicP.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/X11/IntrinsicP.h')
-rw-r--r--include/X11/IntrinsicP.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/X11/IntrinsicP.h b/include/X11/IntrinsicP.h
index 21c5aca..a2d8a29 100644
--- a/include/X11/IntrinsicP.h
+++ b/include/X11/IntrinsicP.h
@@ -64,7 +64,7 @@ typedef struct {
XtIntPtr xrm_default_type; /* Default representation type quark */
XtPointer xrm_default_addr; /* Default resource address */
} XrmResource, *XrmResourceList;
-#if __STDC_VERSION__ >= 201112L
+#if __STDC_VERSION__ >= 201112L && !defined(__cplusplus)
_Static_assert(XtOffsetOf(XrmResource, xrm_default_addr) ==
XtOffsetOf(XtResource, default_addr),
"Field offset mismatch");