diff Core/Toolbox.cpp @ 568:3f27814104f7 laaw

compile with msvc
author jodogne
date Wed, 25 Sep 2013 12:45:33 +0200
parents 8c3573d28868
children 86c5bb651bfa
line wrap: on
line diff
--- a/Core/Toolbox.cpp	Tue Sep 24 15:12:51 2013 +0200
+++ b/Core/Toolbox.cpp	Wed Sep 25 12:45:33 2013 +0200
@@ -68,6 +68,19 @@
 #include "../Resources/sha1/sha1.h"
 
 
+#ifdef _MSC_VER
+// Patch for the missing "_strtoll" symbol when compiling with Visual Studio
+extern "C"
+{
+int64_t _strtoi64(const char *nptr, char **endptr, int base);
+int64_t strtoll(const char *nptr, char **endptr, int base)
+{
+    return _strtoi64(nptr, endptr, base);
+} 
+}
+#endif
+
+
 #if BOOST_HAS_LOCALE == 0
 namespace
 {