]> git.lizzy.rs Git - minetest.git/commitdiff
Add preprocessor check for weird (incorrect) build configurations
authorsfan5 <sfan5@live.de>
Mon, 13 Sep 2021 15:38:19 +0000 (17:38 +0200)
committersfan5 <sfan5@live.de>
Sun, 19 Sep 2021 11:53:44 +0000 (13:53 +0200)
src/main.cpp

index 543b70333f8519c5062360890e57a2a06a93d5b9..1044b327a5a02ceb015daf54f7d0c4ef4ff231cf 100644 (file)
@@ -61,11 +61,8 @@ extern "C" {
 #endif
 }
 
-#if !defined(SERVER) && \
-       (IRRLICHT_VERSION_MAJOR == 1) && \
-       (IRRLICHT_VERSION_MINOR == 8) && \
-       (IRRLICHT_VERSION_REVISION == 2)
-       #error "Irrlicht 1.8.2 is known to be broken - please update Irrlicht to version >= 1.8.3"
+#if !defined(__cpp_rtti) || !defined(__cpp_exceptions)
+#error Minetest cannot be built without exceptions or RTTI
 #endif
 
 #define DEBUGFILE "debug.txt"