Skip to content

Commit

Permalink
Merge pull request #733 from Razakhel/fix-clang-pedantic-windows
Browse files Browse the repository at this point in the history
Added preprocessor checks for Clang on Windows
  • Loading branch information
wolfpld authored Mar 5, 2024
2 parents 9ccc754 + cef21ef commit 7d813ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions public/common/TracySystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ struct ThreadNameData
std::atomic<ThreadNameData*>& GetThreadNameData();
#endif

#ifdef _MSC_VER
#if defined _MSC_VER && !defined __clang__
# pragma pack( push, 8 )
struct THREADNAME_INFO
{
Expand Down Expand Up @@ -149,7 +149,7 @@ TRACY_API void SetThreadName( const char* name )
}
else
{
# if defined _MSC_VER
# if defined _MSC_VER && !defined __clang__
THREADNAME_INFO info;
info.dwType = 0x1000;
info.szName = name;
Expand Down
4 changes: 2 additions & 2 deletions public/common/tracy_lz4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@
#endif /* _MSC_VER */

#ifndef LZ4_FORCE_INLINE
# ifdef _MSC_VER /* Visual Studio */
# if defined (_MSC_VER) && !defined (__clang__) /* MSVC */
# define LZ4_FORCE_INLINE static __forceinline
# else
# if defined (__cplusplus) || defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 */
# ifdef __GNUC__
# if defined (__GNUC__) || defined (__clang__)
# define LZ4_FORCE_INLINE static inline __attribute__((always_inline))
# else
# define LZ4_FORCE_INLINE static inline
Expand Down

0 comments on commit 7d813ec

Please sign in to comment.