Skip to content
Snippets Groups Projects
Commit 5d912010 authored by James Zern's avatar James Zern
Browse files

test/*.h: (windows) fix min/max conflict

define NOMINMAX to allow the std:: versions to be used; min/max will be
defined transitively via windows.h otherwise

Change-Id: I692b03fa3e70b7a53962d3fd209498f70f712fed
parent d2a953e0
No related merge requests found
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
#if defined(_WIN64) #if defined(_WIN64)
#define _WIN32_LEAN_AND_MEAN #define NOMINMAX
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include <winnt.h> #include <winnt.h>
......
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
#define TEST_VIDEO_SOURCE_H_ #define TEST_VIDEO_SOURCE_H_
#if defined(_WIN32) #if defined(_WIN32)
#define NOMINMAX
#define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#endif #endif
#include <cstdio> #include <cstdio>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment