diff options
| author | frsyuki <frsyuki@users.sourceforge.jp> | 2010-02-02 10:52:42 +0900 |
|---|---|---|
| committer | frsyuki <frsyuki@users.sourceforge.jp> | 2010-02-02 10:52:42 +0900 |
| commit | 7df60b259b55b6294c19315350ec312809107117 (patch) | |
| tree | 0e8c2ef3ff2a409169363f23cde83a1668cfd7a3 /msgpack/sysdep.h | |
| parent | 34b3bbc8839f63e3e624dc0ce42525657cdcdfa7 (diff) | |
| download | msgpack-python-7df60b259b55b6294c19315350ec312809107117.tar.gz | |
MSVC2005 compatibility (@hotpepsi++)
Diffstat (limited to 'msgpack/sysdep.h')
| -rw-r--r-- | msgpack/sysdep.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/msgpack/sysdep.h b/msgpack/sysdep.h index 106158e..e9540d5 100644 --- a/msgpack/sysdep.h +++ b/msgpack/sysdep.h @@ -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 |
