]> git.lizzy.rs Git - minetest.git/blobdiff - src/irrlichttypes.h
Fix crash when no world is selected and configure button is pressed.
[minetest.git] / src / irrlichttypes.h
index 82177299eaad932f02cfcf6ea5407be50328dd46..2db744a48fff743020c4738503f2b198a5d501c7 100644 (file)
@@ -24,14 +24,18 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 using namespace irr;
 
+// Irrlicht 1.8+ defines 64bit unsigned symbol in irrTypes.h
+#if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 8)
 #ifdef _MSC_VER
        // Windows
+       typedef long long s64;
        typedef unsigned long long u64;
 #else
        // Posix
        #include <stdint.h>
+       typedef int64_t s64;
        typedef uint64_t u64;
-       //typedef unsigned long long u64;
+#endif
 #endif
 
 #endif