diff options
author | Eric Milkie <milkie@10gen.com> | 2012-04-03 15:48:38 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2012-04-03 16:59:48 -0400 |
commit | aa9915a6d68864b15094494ce86edc05b53a0690 (patch) | |
tree | edbd5540d430d15cd19c1f14d1ef66fd70cef119 | |
parent | d1a452ef2c502d7537cbf40047f30740d9111183 (diff) | |
download | mongo-aa9915a6d68864b15094494ce86edc05b53a0690.tar.gz |
targetver.h needs to go before the Windows system headers
-rw-r--r-- | src/mongo/pch.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/pch.h b/src/mongo/pch.h index ec0d683332e..a2809b2ae6a 100644 --- a/src/mongo/pch.h +++ b/src/mongo/pch.h @@ -31,7 +31,10 @@ # ifndef NOMINMAX # define NOMINMAX # endif +// tell windows.h not to include a bunch of headers +// we don't need: # define WIN32_LEAN_AND_MEAN +# include "targetver.h" # include <winsock2.h> //this must be included before the first windows.h include # include <ws2tcpip.h> # include <wspiapi.h> @@ -61,7 +64,7 @@ #include <stdio.h> #include <stdlib.h> #include <signal.h> -#include "targetver.h" + #include "time.h" #include "string.h" #include "limits.h" |