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