From 0629d76bb064f13176843e30293985254167b75a Mon Sep 17 00:00:00 2001 From: vitaut Date: Fri, 18 Dec 2015 07:20:05 -0800 Subject: [PATCH] Fallback to sized integer types on MSVC if stdint.h is not available --- format.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/format.h b/format.h index 109bcec3..80c36dfc 100644 --- a/format.h +++ b/format.h @@ -28,14 +28,6 @@ #ifndef FMT_FORMAT_H_ #define FMT_FORMAT_H_ -#if defined _MSC_VER && _MSC_VER <= 1500 -typedef unsigned int uint32_t; -typedef unsigned long long uint64_t; -typedef long long intmax_t; -#else -#include -#endif - #include #include #include @@ -64,6 +56,14 @@ typedef long long intmax_t; # include #endif +#if defined(_MSC_VER) && _MSC_VER <= 1500 +typedef unsigned __int32 uint32_t; +typedef unsigned __int64 uint64_t; +typedef __int64 intmax_t; +#else +#include +#endif + #if !defined(FMT_HEADER_ONLY) && defined(_WIN32) # ifdef FMT_EXPORT # define FMT_API __declspec(dllexport)