Skip to content

Commit

Permalink
make #defines consistent across all versions of visual studio, to red…
Browse files Browse the repository at this point in the history
…uce testing needed
  • Loading branch information
hughperkins committed Apr 1, 2015
1 parent 935d07e commit 9c58a3f
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 52 deletions.
90 changes: 45 additions & 45 deletions PyClConvolve/PyClConvolve.cpp

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions src/MyRandom.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@

#include "mt19937defs.h"

#if (_MSC_VER == 1500 || _MSC_VER == 1600 )
//#if (_MSC_VER == 1500 || _MSC_VER == 1600 )
#ifdef _MSC_VER // make consistent across all msvc versions, so dont have to retest on different msvc versions...
#define TR1RANDOM
#endif

#if (_MSC_VER == 1500 || _MSC_VER == 1600 ) // visual studio 2008
//#if (_MSC_VER == 1500 || _MSC_VER == 1600 ) // visual studio 2008
#ifdef _MSC_VER // make consistent across all msvc versions, so dont have to retest on different msvc versions...
#define NOCHRONO
#include <ctime>
#else
Expand Down
3 changes: 2 additions & 1 deletion src/StatefulTimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

#include <iostream>

#if (_MSC_VER == 1500 || _MSC_VER == 1600 ) // visual studio 2008 or 2010
//#if (_MSC_VER == 1500 || _MSC_VER == 1600 ) // visual studio 2008 or 2010
#ifdef _MSC_VER // make consistent across all msvc versions, so dont have to retest on different msvc versions...
#define WINNOCHRONO
//#include <ctime>
#define NOMINMAX // prevents errors compiling std::max and std::min
Expand Down
3 changes: 2 additions & 1 deletion src/Timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

#include <iostream>

#if (_MSC_VER == 1500 || _MSC_VER == 1600 ) // visual studio 2008 or 2010
//#if (_MSC_VER == 1500 || _MSC_VER == 1600 ) // visual studio 2008 or 2010
#ifdef _MSC_VER // make consistent across all msvc versions, so dont have to retest on different msvc versions...
#define WINNOCHRONO
#define NOMINMAX // prevents errors compiling std::max and std::min
#include <windows.h>
Expand Down
3 changes: 2 additions & 1 deletion src/mt19937defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

#include <random>

#if (_MSC_VER == 1500 || _MSC_VER == 1600 )
//#if (_MSC_VER == 1500 || _MSC_VER == 1600 )
#ifdef _MSC_VER // make consistent across all msvc versions, so dont have to retest on different msvc versions...
#define TR1RANDOM
typedef std::tr1::mt19937 MT19937;
#else
Expand Down
3 changes: 2 additions & 1 deletion test/prepare-norb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

#include "NorbLoader.h"

#if (_MSC_VER == 1500 || _MSC_VER == 1600 )
//#if (_MSC_VER == 1500 || _MSC_VER == 1600 )
#ifdef _MSC_VER // make consistent across all msvc versions, so dont have to retest on different msvc versions...
#define TR1RANDOM
typedef std::tr1::mt19937 MT19937;
#else
Expand Down
3 changes: 2 additions & 1 deletion test/testsinglebatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
#include "test/TestArgsParser.h"
#include "Timer.h"

#if (_MSC_VER == 1500 || _MSC_VER == 1600 )
//#if (_MSC_VER == 1500 || _MSC_VER == 1600 )
#ifdef _MSC_VER // make consistent across all msvc versions, so dont have to retest on different msvc versions...
#define TR1RANDOM
typedef std::tr1::mt19937 MT19937;
#define isnan _isnan
Expand Down

0 comments on commit 9c58a3f

Please sign in to comment.