Commit db2fb9ae by apatrick@chromium.org

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 git-svn-id: https://angleproject.googlecode.com/svn/trunk@1725 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 539fb02e
...@@ -10,8 +10,9 @@ ...@@ -10,8 +10,9 @@
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#include "common/system.h"
#include <d3d9.h> #include <d3d9.h>
#include <windows.h>
namespace gl namespace gl
{ {
......
...@@ -11,10 +11,7 @@ ...@@ -11,10 +11,7 @@
#ifndef LIBEGL_DISPLAY_H_ #ifndef LIBEGL_DISPLAY_H_
#define LIBEGL_DISPLAY_H_ #define LIBEGL_DISPLAY_H_
#ifndef WIN32_LEAN_AND_MEAN #include "common/system.h"
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#include <d3d9.h> #include <d3d9.h>
#include <D3Dcompiler.h> #include <D3Dcompiler.h>
......
...@@ -11,9 +11,9 @@ ...@@ -11,9 +11,9 @@
#include "libGLESv2/D3DConstantTable.h" #include "libGLESv2/D3DConstantTable.h"
#include "common/system.h"
#include <d3d9.h> #include <d3d9.h>
#include <d3d9types.h> #include <d3d9types.h>
#include <windows.h>
#include <mmsystem.h> #include <mmsystem.h>
#include "libGLESv2/BinaryStream.h" #include "libGLESv2/BinaryStream.h"
......
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
#include <intrin.h> #include <intrin.h>
#include <math.h> #include <math.h>
#include <windows.h>
#include "common/system.h"
namespace gl namespace gl
{ {
......
...@@ -10,10 +10,9 @@ ...@@ -10,10 +10,9 @@
#include <limits> #include <limits>
#include <stdio.h> #include <stdio.h>
#include <windows.h>
#include "common/debug.h" #include "common/debug.h"
#include "common/system.h"
#include "libGLESv2/mathutil.h" #include "libGLESv2/mathutil.h"
#include "libGLESv2/Context.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