MSVC2005 compatibility (@hotpepsi++)

This commit is contained in:
frsyuki 2010-02-02 10:52:42 +09:00
parent 34b3bbc883
commit 7df60b259b
5 changed files with 21 additions and 10 deletions

View file

@ -46,6 +46,17 @@ typedef unsigned int _msgpack_atomic_counter_t;
#endif
#ifdef __cplusplus
/* numeric_limits<T>::min,max */
#ifdef max
#undef max
#endif
#ifdef min
#undef min
#endif
#endif
#ifdef _WIN32
#include <winsock2.h>
#else