From ad076ede852e5ee8fc3b89e0de95da6c9be42cf5 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 13 Sep 2021 17:38:19 +0200 Subject: [PATCH] Add preprocessor check for weird (incorrect) build configurations --- src/main.cpp | 7 ++----- 1 file 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"