summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/prex.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/prex.h b/include/prex.h
index e513880b0523..a37433d49800 100644
--- a/include/prex.h
+++ b/include/prex.h
@@ -20,6 +20,10 @@
#ifndef _PREX_H
#define _PREX_H
+#ifdef MACOSX
+#error No X headers should be included for MACOSX even if they are present in the SDK
+#endif
+
/* Types from <X11/X.h> that clash with LO's identifiers
* and we don't need.
*/