Fix #207 VC2013 imaxdiv_t redefinition

This commit is contained in:
Milo Yip 2014-12-08 21:53:29 +08:00
parent 9f991fd205
commit 320eff1c21

View File

@ -43,6 +43,11 @@
#include "stdint.h" #include "stdint.h"
// miloyip: VC supports inttypes.h since VC2013
#if _MSC_VER >= 1800
#include <inttypes.h>
#else
// 7.8 Format conversion of integer types // 7.8 Format conversion of integer types
typedef struct { typedef struct {
@ -302,5 +307,6 @@ imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom)
#define wcstoimax _wcstoi64 #define wcstoimax _wcstoi64
#define wcstoumax _wcstoui64 #define wcstoumax _wcstoui64
#endif // _MSC_VER >= 1800
#endif // _MSC_INTTYPES_H_ ] #endif // _MSC_INTTYPES_H_ ]