Add preprocessor check for weird (incorrect) build configurations

This commit is contained in:
sfan5 2021-09-13 17:38:19 +02:00
parent fd8a8501bc
commit ad076ede85

@ -61,11 +61,8 @@ extern "C" {
#endif #endif
} }
#if !defined(SERVER) && \ #if !defined(__cpp_rtti) || !defined(__cpp_exceptions)
(IRRLICHT_VERSION_MAJOR == 1) && \ #error Minetest cannot be built without exceptions or RTTI
(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"
#endif #endif
#define DEBUGFILE "debug.txt" #define DEBUGFILE "debug.txt"