Use std::numeric_limits<> for typesafe INT_MAX/etc

This commit is contained in:
Gavin Andresen
2011-12-19 17:08:25 -05:00
parent bd846c0e56
commit 26ce92b352
13 changed files with 26 additions and 34 deletions

View File

@@ -73,11 +73,7 @@ T* alignup(T* p)
#ifdef WIN32
#define MSG_NOSIGNAL 0
#define MSG_DONTWAIT 0
#ifndef UINT64_MAX
#define UINT64_MAX _UI64_MAX
#define INT64_MAX _I64_MAX
#define INT64_MIN _I64_MIN
#endif
#ifndef S_IRUSR
#define S_IRUSR 0400
#define S_IWUSR 0200