Skip to content

Commit

Permalink
Problem: VS2008 has no definition of UINT16_MAX
Browse files Browse the repository at this point in the history
Solution: provide definition based on _UI16_MAX
  • Loading branch information
sigiesec committed May 25, 2018
1 parent d6c67f2 commit c7632be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stdint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7632be

Please sign in to comment.