summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-09-13 17:38:19 +0200
committersfan5 <sfan5@live.de>2021-09-19 13:53:44 +0200
commitad076ede852e5ee8fc3b89e0de95da6c9be42cf5 (patch)
tree8c03696f92ba760735c738f2680517dc9c6f2857
parentfd8a8501bc26dfca2a93d51000867b8592210040 (diff)
downloadminetest-ad076ede852e5ee8fc3b89e0de95da6c9be42cf5.tar.gz
minetest-ad076ede852e5ee8fc3b89e0de95da6c9be42cf5.tar.bz2
minetest-ad076ede852e5ee8fc3b89e0de95da6c9be42cf5.zip
Add preprocessor check for weird (incorrect) build configurations
-rw-r--r--src/main.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 543b70333..1044b327a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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"