Make compilable under Visual Studio 2008

Older Visual Studio versions are not shipped with stdint.h
This commit is contained in:
Johan 't Hart 2015-12-01 09:34:13 +01:00
parent df2dfd9612
commit 328c8888ec

View File

@ -28,7 +28,13 @@
#ifndef FMT_FORMAT_H_ #ifndef FMT_FORMAT_H_
#define 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 <stdint.h> #include <stdint.h>
#endif
#include <cassert> #include <cassert>
#include <cmath> #include <cmath>