瀏覽代碼

Verify both platform and endianness have been determined in configuration

Bart van Strien 10 年之前
父節點
當前提交
cb02452c08
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/common/config.h

+ 8 - 0
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