summaryrefslogtreecommitdiff
path: root/indra/llvfs/lldir_mac.h
diff options
context:
space:
mode:
authorBoroondas Gupte <hg@boroon.dasgupta.ch>2011-02-11 01:27:01 +0100
committerBoroondas Gupte <hg@boroon.dasgupta.ch>2011-02-11 01:27:01 +0100
commit29b3207fe433497c60feff0b1f71b7fdb27412e1 (patch)
tree4909e82f870c9e081c2fcc9859e3fa257e2059d7 /indra/llvfs/lldir_mac.h
parent547b40bfc8b0139789a2d9c5dcd1591343a2c60b (diff)
OPEN-29 Error out if lldir_<platform>.h is included when building for a different platform
As far as I know, there is no good reason to include e.g. indra/llvfs/lldir_win32.h while not building for a windows target, so be better prevent this to avoid hard to find errors.
Diffstat (limited to 'indra/llvfs/lldir_mac.h')
-rw-r--r--indra/llvfs/lldir_mac.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llvfs/lldir_mac.h b/indra/llvfs/lldir_mac.h
index 4eac3c3ae6..6bde458bf6 100644
--- a/indra/llvfs/lldir_mac.h
+++ b/indra/llvfs/lldir_mac.h
@@ -24,6 +24,10 @@
* $/LicenseInfo$
*/
+#if !LL_DARWIN
+#error This header must not be included when compiling for any target other than Mac OS. Consider including lldir.h instead.
+#endif // !LL_DARWIN
+
#ifndef LL_LLDIR_MAC_H
#define LL_LLDIR_MAC_H