mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Add byteswap for apple.
This commit is contained in:
parent
8827f568e4
commit
d3e0163dd4
@ -571,9 +571,16 @@ static uint64_t ProcessRGB( const uint8_t* src )
|
||||
# endif
|
||||
#else
|
||||
# ifndef _MSC_VER
|
||||
# include <byteswap.h>
|
||||
# ifndef _bswap
|
||||
# define _bswap(x) bswap_32(x)
|
||||
# ifdef __APPLE__
|
||||
# include <libkern/OSByteOrder.h>
|
||||
# ifndef _bswap
|
||||
# define _bswap(x) OSSwapInt32(x)
|
||||
# endif
|
||||
# else
|
||||
# include <byteswap.h>
|
||||
# ifndef _bswap
|
||||
# define _bswap(x) bswap_32(x)
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user