|
|
@@ -45,6 +45,7 @@
|
|
|
#else
|
|
|
#include <cmath>
|
|
|
#endif
|
|
|
+#include <cstdint>
|
|
|
#include <cstdio>
|
|
|
#include <cstdlib>
|
|
|
#include <list>
|
|
|
@@ -68,7 +69,7 @@ std::string to_string(const T& val) {
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
-#if (defined(_MSC_VER) && _MSC_VER < 1900 /*vs2015*/) || (defined(MINGW_HAS_SECURE_API) && MINGW_HAS_SECURE_API)
|
|
|
+#if defined(MINGW_HAS_SECURE_API) && MINGW_HAS_SECURE_API
|
|
|
#include <basetsd.h>
|
|
|
#ifndef snprintf
|
|
|
#define snprintf sprintf_s
|
|
|
@@ -84,22 +85,6 @@ std::string to_string(const T& val) {
|
|
|
#define UINT_PTR uintptr_t
|
|
|
#endif
|
|
|
|
|
|
-#if defined(_MSC_VER) && _MSC_VER < 1800
|
|
|
- #include <stdlib.h>
|
|
|
- inline long long int strtoll (const char* str, char** endptr, int base)
|
|
|
- {
|
|
|
- return _strtoi64(str, endptr, base);
|
|
|
- }
|
|
|
- inline unsigned long long int strtoull (const char* str, char** endptr, int base)
|
|
|
- {
|
|
|
- return _strtoui64(str, endptr, base);
|
|
|
- }
|
|
|
- inline long long int atoll (const char* str)
|
|
|
- {
|
|
|
- return strtoll(str, NULL, 10);
|
|
|
- }
|
|
|
-#endif
|
|
|
-
|
|
|
#if defined(_MSC_VER)
|
|
|
#define strdup _strdup
|
|
|
#endif
|