1
0
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:
Bartosz Taudul 2019-06-12 16:54:44 +02:00
parent 8827f568e4
commit d3e0163dd4

View File

@ -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)