From 5e611669ab4c40960f319c17c5d4a88512066999 Mon Sep 17 00:00:00 2001 From: Drake Arconis Date: Wed, 20 Jan 2016 10:08:44 -0500 Subject: [PATCH] Fix windows build --- indra/newview/llviewerprecompiledheaders.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/indra/newview/llviewerprecompiledheaders.h b/indra/newview/llviewerprecompiledheaders.h index 6039d5ec3..466c69b28 100644 --- a/indra/newview/llviewerprecompiledheaders.h +++ b/indra/newview/llviewerprecompiledheaders.h @@ -41,6 +41,17 @@ #include "linden_common.h" +// We may want to take the windows.h include out, but it used to be in +// linden_common.h, and hence in all the libraries. This is better. JC +#if LL_WINDOWS + // Limit Windows API to small and manageable set. + // If you get undefined symbols, find the appropriate + // Windows header file and include that in your .cpp file. +#define WIN32_LEAN_AND_MEAN +#include +#include +#endif + #include #include #include