Regression: Add NOGDI and NOMINMAX macros before including windows.h.
author <shinichiro.hamaji@gmail.com> <>
Mon, 27 Jul 2009 08:13:30 +0000 (08:13 +0000)
committer <shinichiro.hamaji@gmail.com> <>
Mon, 27 Jul 2009 08:13:30 +0000 (08:13 +0000)
git-svn-id: https://google-glog.googlecode.com/svn/trunk@61 eb4d4688-79bd-11dd-afb4-1d65580434c0

src/base/mutex.h

index 7a48c41..7ba88cb 100644 (file)
 #     define _WIN32_WINNT 0x0400
 #   endif
 # endif
+// To avoid macro definition of ERROR.
+# define NOGDI
+// To avoid macro definition of min/max.
+# define NOMINMAX
 # include <windows.h>
   typedef CRITICAL_SECTION MutexType;
 #elif defined(HAVE_PTHREAD) && defined(HAVE_RWLOCK)