Merge pull request #1794 from joolswills/patch-1

GCC 4.7 does not have __builtin_bswap16 on all platforms
This commit is contained in:
Twinaphex 2015-06-14 21:36:08 +02:00
commit f768a2d867

View File

@ -27,7 +27,7 @@
#include <stdint.h>
#include <stdlib.h>
#if defined(__llvm__) || (defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 403)
#if defined(__llvm__) || (defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 408)
#define SWAP16 __builtin_bswap16
#define SWAP32 __builtin_bswap32
#elif defined(_MSC_VER)