Skip to content

Commit

Permalink
Fix Windows warnings-as-errors introduced by ref-awmodule
Browse files Browse the repository at this point in the history
  • Loading branch information
jdonald authored and codemercenary committed Aug 21, 2014
1 parent 2bb1328 commit 0fbd709
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/autonet/stdafx.h
Expand Up @@ -3,7 +3,9 @@
#include <math.h>
#include <assert.h>
#include <cctype>
#define NOMINMAX
#ifndef NOMINMAX
#define NOMINMAX
#endif

#ifndef _MSC_VER
#include <stdlib.h>
Expand Down
6 changes: 4 additions & 2 deletions src/autotesting/stdafx.h
Expand Up @@ -5,7 +5,9 @@
// Currently this is only supported on MSVC
#ifdef _MSC_VER
#include <thread>
#define NOMINMAX
#ifndef NOMINMAX
#define NOMINMAX
#endif
#endif

#ifndef _MSC_VER
Expand All @@ -18,4 +20,4 @@

template<class T, int n>
const char(&ArraySize(const T(&vals)[n]))[n];
#define ARRAYCOUNT(x) sizeof(ArraySize(x))
#define ARRAYCOUNT(x) sizeof(ArraySize(x))
4 changes: 3 additions & 1 deletion src/autowiring/stdafx.h
Expand Up @@ -5,7 +5,9 @@
// Currently this is only supported on MSVC
#ifdef _MSC_VER
#include <thread>
#define NOMINMAX
#ifndef NOMINMAX
#define NOMINMAX
#endif
#endif

#ifndef _MSC_VER
Expand Down

0 comments on commit 0fbd709

Please sign in to comment.