Skip to content

Commit 900b211

Browse files
author
Kent Knox
committed
Changes to compile for vs2013/vs12
1 parent b5bbbc2 commit 900b211

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/tests/include/BlasBase.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#include <clBLAS.h>
2222
#include <common.h>
23+
#include <algorithm>
2324

2425
#if _MSC_VER
2526
#pragma warning (disable:4127)

src/tests/include/blas-math.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020

2121
#if defined (_MSC_VER)
2222

23+
#if( _MSC_VER <= 1700 )
2324
static unsigned long long ROW_NAN = 0x7ff0000000000000LL;
24-
static unsigned int ROW_NANF = 0x7fc00000;
25-
2625
#define NAN *(reinterpret_cast<double*>(&ROW_NAN))
26+
#endif
27+
28+
static unsigned int ROW_NANF = 0x7fc00000;
2729
#define NANF *(reinterpret_cast<float*>(&ROW_NANF))
2830

2931
#else /* _MSC_VER */

0 commit comments

Comments
 (0)