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,9 +571,16 @@ static uint64_t ProcessRGB( const uint8_t* src )
|
|||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# ifndef _MSC_VER
|
# ifndef _MSC_VER
|
||||||
# include <byteswap.h>
|
# ifdef __APPLE__
|
||||||
# ifndef _bswap
|
# include <libkern/OSByteOrder.h>
|
||||||
# define _bswap(x) bswap_32(x)
|
# ifndef _bswap
|
||||||
|
# define _bswap(x) OSSwapInt32(x)
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
|
# include <byteswap.h>
|
||||||
|
# ifndef _bswap
|
||||||
|
# define _bswap(x) bswap_32(x)
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user