Skip to content

Commit 3ffa490

Browse files
authored
Fix a typo in checks for MSVC (#8096)
MSVC's defs are different in C++ and CMake :)
1 parent 981981f commit 3ffa490

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libdevice/cmath_wrapper_fp64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ double atanh(double x) { return __devicelib_atanh(x); }
137137
DEVICE_EXTERN_C_INLINE
138138
double scalbn(double x, int exp) { return __devicelib_scalbn(x, exp); }
139139

140-
#if defined(MSVC)
140+
#if defined(_MSC_VER)
141141
#include <math.h>
142142
// FLOAT PROPERTIES
143143
#define _D0 3 // little-endian, small long doubles

sycl/include/sycl/detail/iostream_proxy.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
99
namespace std {
1010
#endif
1111

12-
#if defined(MSVC) && defined(_MT) && defined(_DLL)
12+
#if defined(_MSC_VER) && defined(_MT) && defined(_DLL)
1313
#define __SYCL_EXTERN_STREAM_ATTRS __declspec(dllimport)
1414
#else
1515
#define __SYCL_EXTERN_STREAM_ATTRS

sycl/include/sycl/detail/pi.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ enum TraceLevel {
6262
bool trace(TraceLevel level);
6363

6464
#ifdef __SYCL_RT_OS_WINDOWS
65-
#ifdef MSVC
65+
#ifdef _MSC_VER
6666
#define __SYCL_OPENCL_PLUGIN_NAME "pi_opencl.dll"
6767
#define __SYCL_LEVEL_ZERO_PLUGIN_NAME "pi_level_zero.dll"
6868
#define __SYCL_CUDA_PLUGIN_NAME "pi_cuda.dll"

0 commit comments

Comments
 (0)