summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xcompositeint.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xcompositeint.h b/src/xcompositeint.h
index f9f1b46..c2247bf 100644
--- a/src/xcompositeint.h
+++ b/src/xcompositeint.h
@@ -76,9 +76,9 @@ XCompositeFindDisplay (Display *dpy);
#define XCompositeHasExtension(i) ((i) && ((i)->codes))
#define XCompositeCheckExtension(dpy,i,val) \
- if (!XCompositeHasExtension(i)) { return val; }
+ do { if (!XCompositeHasExtension(i)) { return val; } } while (0)
#define XCompositeSimpleCheckExtension(dpy,i) \
- if (!XCompositeHasExtension(i)) { return; }
+ do { if (!XCompositeHasExtension(i)) { return; } } while (0)
#endif /* _XCOMPOSITEINT_H_ */