Skip to content

Commit b30eef9

Browse files
committed
Remove intermediate HXCPP_CPLUSPLUS macro
1 parent 103b645 commit b30eef9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

include/hxcpp.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,15 @@
9090
#else
9191
#define HXCPP_EXTERN_CLASS_ATTRIBUTES
9292
#endif
93-
#define HXCPP_CPLUSPLUS _MSVC_LANG
9493
#else
9594
#if defined(HXCPP_DLL_EXPORT)
9695
#define HXCPP_EXTERN_CLASS_ATTRIBUTES __attribute__((visibility("default")))
9796
#else
9897
#define HXCPP_EXTERN_CLASS_ATTRIBUTES
9998
#endif
100-
#define HXCPP_CPLUSPLUS __cplusplus
10199
#endif
102100

103-
#if HXCPP_CPLUSPLUS >= 201103L
101+
#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSVC_LANG >= 201103L)
104102
#define HXCPP_OVERRIDE override
105103
#else
106104
#define HXCPP_OVERRIDE

0 commit comments

Comments
 (0)