Regression: Add NOGDI and NOMINMAX macros before including windows.h.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@61 eb4d4688-79bd-11dd-afb4-1d65580434c0
This commit is contained in:
2009-07-27 08:13:30 +00:00
parent c24b607748
commit 2c28a49394

View File

@ -116,6 +116,10 @@
# 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)