File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 3
3
4
4
#include < type_traits>
5
5
6
- #ifdef _MSC_VER
6
+ #if defined(__clang__) || defined(__GNUC__)
7
+ #define CTLL_FORCE_INLINE __attribute__ ((always_inline))
8
+ #elif defined(_MSC_VER)
7
9
#define CTLL_FORCE_INLINE __forceinline
8
10
#else
9
11
#define CTLL_FORCE_INLINE __attribute__ ((always_inline))
Original file line number Diff line number Diff line change 12
12
#include < iterator>
13
13
14
14
// remove me when MSVC fix the constexpr bug
15
- #ifdef _MSC_VER
15
+ #if defined( _MSC_VER) && !defined(__clang__) && !defined(__GNUC__)
16
16
#ifndef CTRE_MSVC_GREEDY_WORKAROUND
17
17
#define CTRE_MSVC_GREEDY_WORKAROUND
18
18
#endif
Original file line number Diff line number Diff line change 18
18
#define CTRE_UNLIKELY
19
19
#endif
20
20
21
- #ifdef _MSC_VER
21
+ #if defined(__clang__) || defined(__GNUC__)
22
+ #define CTRE_FORCE_INLINE inline __attribute__ ((always_inline))
23
+ #define CTRE_FLATTEN __attribute__ ((flatten))
24
+ #elif defined(_MSC_VER)
22
25
#define CTRE_FORCE_INLINE __forceinline
23
26
#define CTRE_FLATTEN
24
27
#else
You can’t perform that action at this time.
0 commit comments