From cb02452c0889ca28783cdeaa3a72a409ddcb8392 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Sun, 22 Mar 2015 14:26:25 +0100 Subject: [PATCH] Verify both platform and endianness have been determined in configuration --- src/common/config.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/common/config.h b/src/common/config.h index 97ed94318..9c7cd891d 100644 --- a/src/common/config.h +++ b/src/common/config.h @@ -140,4 +140,12 @@ # define LOVE_ENABLE_WUFF #endif +// Check we have a sane configuration +#if !defined(LOVE_WINDOWS) && !defined(LOVE_LINUX) && !defined(LOVE_IOS) && !defined(LOVE_MACOSX) +# error Could not detect target platform +#endif +#if !defined(LOVE_LITTLE_ENDIAN) && !defined(LOVE_BIG_ENDIAN) +# error Could not detect endianness +#endif + #endif // LOVE_CONFIG_H