summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Xfixesint.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xfixesint.h b/src/Xfixesint.h
index 8a4d5fd..a058f12 100644
--- a/src/Xfixesint.h
+++ b/src/Xfixesint.h
@@ -55,9 +55,9 @@ XFixesFindDisplay (Display *dpy);
#define XFixesHasExtension(i) ((i) && ((i)->codes))
#define XFixesCheckExtension(dpy,i,val) \
- if (!XFixesHasExtension(i)) { return val; }
+ do { if (!XFixesHasExtension(i)) { return val; } } while(0)
#define XFixesSimpleCheckExtension(dpy,i) \
- if (!XFixesHasExtension(i)) { return; }
+ do { if (!XFixesHasExtension(i)) { return; } } while(0)
#endif /* _XFIXESINT_H_ */