Browse Source

Avoid bswap redefinition.

Con Kolivas 13 years ago
parent
commit
54377dba6f
1 changed files with 5 additions and 3 deletions
  1. 5 3
      miner.h

+ 5 - 3
miner.h

@@ -119,9 +119,11 @@ static inline int fsync (int fd)
 #endif
 
 #if !defined(WIN32) && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
-#define bswap_16 __builtin_bswap16
-#define bswap_32 __builtin_bswap32
-#define bswap_64 __builtin_bswap64
+#ifndef bswap_16
+ #define bswap_16 __builtin_bswap16
+ #define bswap_32 __builtin_bswap32
+ #define bswap_64 __builtin_bswap64
+#endif
 #else
 #if HAVE_BYTESWAP_H
 #include <byteswap.h>