Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/Net.h
diff options
context:
space:
mode:
authorMikkel Krautz <mikkel@krautz.dk>2017-04-09 20:47:36 +0300
committerMikkel Krautz <mikkel@krautz.dk>2017-04-09 21:57:36 +0300
commitc01ff8c16f4222801387f68e85bf6f88ee40f553 (patch)
tree095041817f7b6b82441f5636572c33b5af3281da /src/Net.h
parent65909b89cf634ac9ec76e4d57ab7e6874acf985b (diff)
Net: refactor SWAP64 macro into its own header, ByteSwap.h.
Diffstat (limited to 'src/Net.h')
-rw-r--r--src/Net.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/Net.h b/src/Net.h
index f34fe9126..4999764a5 100644
--- a/src/Net.h
+++ b/src/Net.h
@@ -66,14 +66,4 @@ struct Ban {
quint32 qHash(const Ban &);
-#if Q_BYTE_ORDER == Q_BIG_ENDIAN
-#define SWAP64(x) (x)
-#else
-#if defined(__x86_64__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
-#define SWAP64(x) __builtin_bswap64(x)
-#else
-#define SWAP64(x) qbswap<quint64>(x)
-#endif
-#endif
-
#endif