]> git.tdb.fi Git - libs/core.git/blobdiff - source/strings/lexicalcast.cpp
Prefer inttypes.h to doing the #ifdef dance everywhere
[libs/core.git] / source / strings / lexicalcast.cpp
index 782f4a8537adb05583c6e45e68c6b80620439142..71e346b7651818f9c91006fdfacaa8dce05613ed 100644 (file)
@@ -1,5 +1,6 @@
 #include <cmath>
 #include <limits>
+#include <msp/core/inttypes.h>
 #include "format.h"
 #include "lexicalcast.h"
 
@@ -20,11 +21,7 @@ struct Temporary
 template<typename T>
 struct Temporary<T, true>
 {
-#ifdef WIN32
-       typedef __int64 Type;
-#else
-       typedef unsigned long long Type;
-#endif
+       typedef UInt64 Type;
 };
 
 /* Helper to avoid warnings about an unsigned type never being < 0 */