mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 13:13:53 +00:00
Add byteswap for apple.
This commit is contained in:
parent
8827f568e4
commit
d3e0163dd4
@ -571,12 +571,19 @@ static uint64_t ProcessRGB( const uint8_t* src )
|
||||
# endif
|
||||
#else
|
||||
# ifndef _MSC_VER
|
||||
# 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
|
||||
|
||||
#ifndef _bswap
|
||||
# define _bswap(x) __builtin_bswap32(x)
|
||||
|
Loading…
x
Reference in New Issue
Block a user