diff options
author | snappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143> | 2011-04-15 22:55:56 +0000 |
---|---|---|
committer | snappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143> | 2011-04-15 22:55:56 +0000 |
commit | 9e2dd02276775d52d8fb1f3399d4669c92d35a38 (patch) | |
tree | dc08ce38ebe473059cd4272411ac0744be463585 | |
parent | bbe6defd5fb1df14578ddc389475fd1a64077eb5 (diff) | |
download | snappy-9e2dd02276775d52d8fb1f3399d4669c92d35a38.tar.gz |
When including <windows.h>, define WIN32_LEAN_AND_MEAN first,
so we won't pull in macro definitions of things like min() and max(),
which can conflict with <algorithm>.
R=csilvers
DELTA=1 (1 added, 0 deleted, 0 changed)
Revision created by MOE tool push_codebase.
MOE_MIGRATION=1485
git-svn-id: http://snappy.googlecode.com/svn/trunk@29 03e5f5b5-db94-4691-08a0-1a8bf15f6143
-rw-r--r-- | snappy-test.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/snappy-test.cc b/snappy-test.cc index e43a556..b608516 100644 --- a/snappy-test.cc +++ b/snappy-test.cc @@ -31,6 +31,7 @@ #include "snappy-test.h" #ifdef HAVE_WINDOWS_H +#define WIN32_LEAN_AND_MEAN #include <windows.h> #endif |