Only do the _MSC_VER calculations if defined.

This commit is contained in:
Jason Felds
2013-02-01 23:04:46 -05:00
parent 1e9ffd1a64
commit 04644ed3c3
+2
View File
@@ -113,6 +113,7 @@ typedef int int32_t;
typedef unsigned int uint32_t;
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
#if defined(_MSC_VER)
#if _MSC_VER < 1700 // 1700 = VC++ 2011
#define INT64_C(i) i##i64
#ifndef UINT64_C
@@ -123,6 +124,7 @@ typedef unsigned __int64 uint64_t;
static inline int64_t llabs( int64_t i ) { return i >= 0? i: -i; }
#endif // #if _MSC_VER < 1600
#endif
#endif
#undef min
#undef max