From c7632bec9a615644bd419f655aafb9039f486014 Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Fri, 25 May 2018 13:32:07 +0200 Subject: [PATCH] Problem: VS2008 has no definition of UINT16_MAX Solution: provide definition based on _UI16_MAX --- src/stdint.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stdint.hpp b/src/stdint.hpp index 4efc86f1a2..dc4d5df1f7 100644 --- a/src/stdint.hpp +++ b/src/stdint.hpp @@ -60,6 +60,9 @@ typedef unsigned __int32 uint32_t; #ifndef uint64_t typedef unsigned __int64 uint64_t; #endif +#ifndef UINT16_MAX +#define UINT16_MAX _UI16_MAX +#endif #ifndef UINT32_MAX #define UINT32_MAX _UI32_MAX #endif