Skip to content

Commit 5c721f8

Browse files
committed
oops
1 parent 282f10e commit 5c721f8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

rpp/base.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

22
#pragma once
33

4-
#if __cplusplus < 202002L
4+
#ifdef _MSC_VER
5+
6+
#if _MSVC_LANG < 202002L
57
#error "Unsupported C++ standard: only C++20 or newer is supported."
68
#endif
79

8-
#ifdef _MSC_VER
9-
1010
#define RPP_COMPILER_MSVC
1111
#define RPP_FORCE_INLINE __forceinline
1212
#define RPP_MSVC_INTRINSIC [[msvc::intrinsic]]
@@ -19,6 +19,10 @@
1919

2020
#elif defined __clang__
2121

22+
#if __cplusplus < 202002L
23+
#error "Unsupported C++ standard: only C++20 or newer is supported."
24+
#endif
25+
2226
#define RPP_COMPILER_CLANG
2327
#define RPP_FORCE_INLINE __attribute__((always_inline)) inline
2428
#define RPP_MSVC_INTRINSIC

0 commit comments

Comments
 (0)