diff --git a/client/TracyEtc1.cpp b/client/TracyEtc1.cpp index c7257583..e534cf56 100644 --- a/client/TracyEtc1.cpp +++ b/client/TracyEtc1.cpp @@ -571,9 +571,16 @@ static uint64_t ProcessRGB( const uint8_t* src ) # endif #else # ifndef _MSC_VER -# include -# ifndef _bswap -# define _bswap(x) bswap_32(x) +# ifdef __APPLE__ +# include +# ifndef _bswap +# define _bswap(x) OSSwapInt32(x) +# endif +# else +# include +# ifndef _bswap +# define _bswap(x) bswap_32(x) +# endif # endif # endif #endif