summaryrefslogtreecommitdiffstats
path: root/src/common/swap.h
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-06-21 14:12:49 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-06-28 01:36:54 +0200
commit2d044a67c932403b81fdde6f81d461c6e7c11efe (patch)
tree84e423036be6e126d39ad18b02662f6ea6677ea1 /src/common/swap.h
parentCommon: Cleanup profiler includes. (diff)
downloadyuzu-2d044a67c932403b81fdde6f81d461c6e7c11efe.tar
yuzu-2d044a67c932403b81fdde6f81d461c6e7c11efe.tar.gz
yuzu-2d044a67c932403b81fdde6f81d461c6e7c11efe.tar.bz2
yuzu-2d044a67c932403b81fdde6f81d461c6e7c11efe.tar.lz
yuzu-2d044a67c932403b81fdde6f81d461c6e7c11efe.tar.xz
yuzu-2d044a67c932403b81fdde6f81d461c6e7c11efe.tar.zst
yuzu-2d044a67c932403b81fdde6f81d461c6e7c11efe.zip
Diffstat (limited to '')
-rw-r--r--src/common/swap.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/common/swap.h b/src/common/swap.h
index 588cebc70..b92e5bfa4 100644
--- a/src/common/swap.h
+++ b/src/common/swap.h
@@ -17,12 +17,16 @@
#pragma once
-#if defined(__linux__)
-#include <byteswap.h>
+#if defined(_MSC_VER)
+ #include <cstdlib>
+#elif defined(__linux__)
+ #include <byteswap.h>
#elif defined(__FreeBSD__)
-#include <sys/endian.h>
+ #include <sys/endian.h>
#endif
+#include "common/common_types.h"
+
// GCC 4.6+
#if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)