mirror of
https://git.freebsd.org/ports.git
synced 2025-05-04 15:37:40 -04:00
aggtree.cc:14:24: error: static declaration of '__builtin_bswap32' follows non-static declaration 14 | static inline uint32_t bswap_32(uint32_t u) { | ^ /usr/include/byteswap.h:38:21: note: expanded from macro 'bswap_32' 38 | #define bswap_32(x) __bswap32(x) | ^ /usr/include/sys/_endian.h:84:22: note: expanded from macro '__bswap32' 84 | #define __bswap32(x) __builtin_bswap32(x) | ^
13 lines
334 B
C++
13 lines
334 B
C++
--- src/aggwtree.cc.orig 2024-06-01 22:57:44 UTC
|
|
+++ src/aggwtree.cc
|
|
@@ -9,10 +9,6 @@
|
|
|
|
#ifdef HAVE_BYTEORDER_H
|
|
#include <byteorder.h>
|
|
-#else
|
|
-static inline uint32_t bswap_32(uint32_t u) {
|
|
- return ((u >> 24) | ((u & 0xff0000) >> 8) | ((u & 0xff00) << 8) | ((u & 0xff) << 24));
|
|
-}
|
|
#endif
|
|
|
|
typedef AggregateWTree::WNode WNode;
|