summaryrefslogtreecommitdiff
path: root/src/Callback.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Callback.c')
-rw-r--r--src/Callback.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Callback.c b/src/Callback.c
index 0c4ef5c..fa18436 100644
--- a/src/Callback.c
+++ b/src/Callback.c
@@ -80,7 +80,11 @@ static _Xconst _XtString XtNxtRemoveAllCallback = "xtRemoveAllCallback";
static _Xconst _XtString XtNxtCallCallback = "xtCallCallback";
/* However it doesn't contain a final NULL record */
+#if __STDC_VERSION__ >= 199901L
+#define ToList(p) ((p)->callbacks)
+#else
#define ToList(p) ((XtCallbackList) ((p)+1))
+#endif
static InternalCallbackList *
FetchInternalList(Widget widget,