Skip to content

Commit 324243f

Browse files
committed
Revert "Handle MSVC's definition of __cplusplus"
This reverts commit 20e1c43.
1 parent 05288a6 commit 324243f

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

thrust/detail/config/cpp_dialect.h

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,17 @@
1616

1717
#pragma once
1818

19-
#ifdef _MSC_VER
20-
#define THRUST_CPP_VER _MSVC_LANG
21-
#else
22-
#define THRUST_CPP_VER __cplusplus
23-
#endif
24-
25-
#if THRUST_CPP_VER < 201103L
19+
#if __cplusplus < 201103L
2620
#define THRUST_CPP03
2721
#define THRUST_CPP_DIALECT 2003
28-
#elif THRUST_CPP_VER < 201402L
22+
#elif __cplusplus < 201402L
2923
#define THRUST_CPP11
3024
#define THRUST_CPP_DIALECT 2011
31-
#elif THRUST_CPP_VER < 201703L
25+
#elif __cplusplus < 201703L
3226
#define THRUST_CPP14
3327
#define THRUST_CPP_DIALECT 2014
3428
#else
3529
#define THRUST_CPP17
3630
#define THRUST_CPP_DIALECT 2017
3731
#endif
3832

39-
#undef THRUST_CPP_VER

0 commit comments

Comments
 (0)