Include windows.h from one place to ensure that min and max macros are not defined.

These conflict with the STL functions of the same name. This is to make the standalone ANGLE gyp build work again. Review URL: https://codereview.appspot.com/7211043 Also includes r1729 which adds the missing new file. git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1790 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 55e4b4f5
......@@ -10,8 +10,9 @@
#include <stdio.h>
#include <stdarg.h>
#include "common/system.h"
#include <d3d9.h>
#include <windows.h>
namespace gl
{
......
//
// Copyright (c) 2002-2012 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// system.h: Includes Windows system headers and undefines macros that conflict.
#ifndef COMMON_SYSTEM_H
#define COMMON_SYSTEM_H
#if !defined(WIN32_LEAN_AND_MEAN)
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#if defined(min)
#undef min
#endif
#if defined(max)
#undef max
#endif
#endif // COMMON_SYSTEM_H
#define MAJOR_VERSION 1
#define MINOR_VERSION 1
#define BUILD_VERSION 0
#define BUILD_REVISION 1722
#define BUILD_REVISION 1729
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
......
......@@ -11,10 +11,7 @@
#ifndef LIBEGL_DISPLAY_H_
#define LIBEGL_DISPLAY_H_
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#include "common/system.h"
#include <set>
#include <vector>
......
......@@ -280,6 +280,8 @@ copy "$(OutDir)libGLESv2.lib" "$(ProjectDir)..\..\lib\$(Configuration)\"
<ClCompile Include="utilities.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\common\debug.h" />
<ClInclude Include="..\common\system.h" />
<ClInclude Include="..\third_party\murmurhash\MurmurHash3.h" />
<ClInclude Include="angletypes.h" />
<ClInclude Include="BinaryStream.h" />
......
......@@ -397,6 +397,12 @@
<ClInclude Include="renderer\shaders\compiled\clear11vs.h">
<Filter>Renderer\Shaders\Compiled</Filter>
</ClInclude>
<ClInclude Include="..\common\system.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\common\debug.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="libGLESv2.def">
......
......@@ -11,7 +11,8 @@
#include <intrin.h>
#include <math.h>
#include <windows.h>
#include "common/system.h"
namespace gl
{
......
......@@ -10,10 +10,9 @@
#include <limits>
#include <stdio.h>
#include <windows.h>
#include "common/debug.h"
#include "common/system.h"
#include "libGLESv2/mathutil.h"
#include "libGLESv2/Context.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment