From 7df60b259b55b6294c19315350ec312809107117 Mon Sep 17 00:00:00 2001 From: frsyuki Date: Tue, 2 Feb 2010 10:52:42 +0900 Subject: MSVC2005 compatibility (@hotpepsi++) --- msgpack/sysdep.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'msgpack/sysdep.h') 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::min,max */ +#ifdef max +#undef max +#endif +#ifdef min +#undef min +#endif +#endif + + #ifdef _WIN32 #include #else -- cgit v1.2.1