Browse Source

Compiler incompatibility fix for UINT64_MAX.

Lasse Öörni 9 years ago
parent
commit
6b03450f46
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Source/ThirdParty/AngelScript/source/as_string_util.cpp

+ 6 - 1
Source/ThirdParty/AngelScript/source/as_string_util.cpp

@@ -29,11 +29,16 @@
 
 */
 
+// Modified by Lasse Oorni for Urho3D
+
 #include "as_config.h"
 
 #include <string.h>     // some compilers declare memcpy() here
 #include <math.h>       // pow()
-#include <stdint.h>     // UINT64_MAX
+
+// Urho3D: for compiler reliability, define ourselves
+//#include <stdint.h>     // UINT64_MAX
+#define UINT64_MAX 0xffffffffffffffffULL
 
 #if !defined(AS_NO_MEMORY_H)
 #include <memory.h>