summaryrefslogtreecommitdiff
path: root/lib/common/BoxPlatform.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-05-28 15:59:38 +0000
committerChris Wilson <chris+github@qwirx.com>2008-05-28 15:59:38 +0000
commit7b9aae128f8996921e7b79569bd8c58ddac764e1 (patch)
tree6756da6e15c0737148c0b72d7c805048ff35f9d0 /lib/common/BoxPlatform.h
parent4d7754c4f63eb4588f04de1e8cda14b740b0b74a (diff)
Check that Box.h has been included early enough.
Diffstat (limited to 'lib/common/BoxPlatform.h')
-rw-r--r--lib/common/BoxPlatform.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/common/BoxPlatform.h b/lib/common/BoxPlatform.h
index acec9cb3..92088414 100644
--- a/lib/common/BoxPlatform.h
+++ b/lib/common/BoxPlatform.h
@@ -29,6 +29,9 @@
#endif
#ifdef WIN32
+ #ifdef __MSVCRT_VERSION__
+ #error Must include Box.h before sys/types.h
+ #endif
// need msvcrt version 6.1 or higher for _gmtime64()
// must define this before importing <sys/types.h>
#define __MSVCRT_VERSION__ 0x0601