diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-05-28 16:08:38 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-05-28 16:21:35 +0300 |
commit | c36ff98f796761a4ec106563ad9761d8020b497a (patch) | |
tree | 42d48fe8cfddfb48ee1f228c6151a7a79054045b /include/prex.h | |
parent | 13229ce11e8d801e4dd40060fd801830095aa59e (diff) |
Error out if <prex.h> is included when compiling for OS X
The X11 headers are present in the OS X SDK (because OS X does have an X11
server, even though I think it might be a separate download and install on
demand nowadays), but we don't want to include them even if it would be
harmless.
Change-Id: I48011d7e1d2cd6398fc7b4cba8ec8100addc053b
Diffstat (limited to 'include/prex.h')
-rw-r--r-- | include/prex.h | 4 |
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. */ |