_bswap may be already defined.

This commit is contained in:
Bartosz Taudul 2019-06-07 01:07:51 +02:00
parent ff5170d0e9
commit 34a6fe7055

View File

@ -16,9 +16,11 @@
#else #else
# ifndef _MSC_VER # ifndef _MSC_VER
# include <byteswap.h> # include <byteswap.h>
# ifndef _bswap
# define _bswap(x) bswap_32(x) # define _bswap(x) bswap_32(x)
# endif # endif
# endif # endif
#endif
#ifndef _bswap #ifndef _bswap
# define _bswap(x) __builtin_bswap32(x) # define _bswap(x) __builtin_bswap32(x)