From a8018b8ee516f02657617ae72a0d3f745b721efd Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 17 May 2016 01:28:44 +0200 Subject: [PATCH] [VS2010] Define strtoll() and atoll() functions --- glslang/Include/Common.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/glslang/Include/Common.h b/glslang/Include/Common.h index 3825253d..e5c18b99 100644 --- a/glslang/Include/Common.h +++ b/glslang/Include/Common.h @@ -62,6 +62,18 @@ std::string to_string(const T& val) { } } #endif + +#if _MSC_VER < 1700 +inline long long int strtoll (const char* str, char** endptr, int base) +{ + return _strtoi64(str, endptr, base); +} +inline long long int atoll (const char* str) +{ + return strtoll(str, NULL, 10); +} +#endif + /* windows only pragma */ #ifdef _MSC_VER #pragma warning(disable : 4786) // Don't warn about too long identifiers