File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ struct ThreadNameData
110
110
std::atomic<ThreadNameData*>& GetThreadNameData ();
111
111
#endif
112
112
113
- #ifdef _MSC_VER
113
+ #if defined _MSC_VER && !defined __clang__
114
114
# pragma pack( push, 8 )
115
115
struct THREADNAME_INFO
116
116
{
@@ -149,7 +149,7 @@ TRACY_API void SetThreadName( const char* name )
149
149
}
150
150
else
151
151
{
152
- # if defined _MSC_VER
152
+ # if defined _MSC_VER && !defined __clang__
153
153
THREADNAME_INFO info;
154
154
info.dwType = 0x1000 ;
155
155
info.szName = name;
Original file line number Diff line number Diff line change 128
128
#endif /* _MSC_VER */
129
129
130
130
#ifndef LZ4_FORCE_INLINE
131
- # ifdef _MSC_VER /* Visual Studio */
131
+ # if defined ( _MSC_VER) && !defined (__clang__) /* MSVC */
132
132
# define LZ4_FORCE_INLINE static __forceinline
133
133
# else
134
134
# if defined (__cplusplus) || defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 */
135
- # ifdef __GNUC__
135
+ # if defined ( __GNUC__) || defined (__clang__)
136
136
# define LZ4_FORCE_INLINE static inline __attribute__ ((always_inline))
137
137
# else
138
138
# define LZ4_FORCE_INLINE static inline
You can’t perform that action at this time.
0 commit comments