diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-07-11 01:36:12 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-07-11 01:36:12 +0200 |
commit | 867c28ae03b3b2883713896765f3ff76eaf90a19 (patch) | |
tree | 8ff8cf3ab24d2f167c19217efb8175a8841c0359 /src/common/swap.h | |
parent | Merge pull request #906 from aroulin/loader-format-specifier-warning (diff) | |
parent | Core: Cleanup hw includes. (diff) | |
download | yuzu-867c28ae03b3b2883713896765f3ff76eaf90a19.tar yuzu-867c28ae03b3b2883713896765f3ff76eaf90a19.tar.gz yuzu-867c28ae03b3b2883713896765f3ff76eaf90a19.tar.bz2 yuzu-867c28ae03b3b2883713896765f3ff76eaf90a19.tar.lz yuzu-867c28ae03b3b2883713896765f3ff76eaf90a19.tar.xz yuzu-867c28ae03b3b2883713896765f3ff76eaf90a19.tar.zst yuzu-867c28ae03b3b2883713896765f3ff76eaf90a19.zip |
Diffstat (limited to 'src/common/swap.h')
-rw-r--r-- | src/common/swap.h | 10 |
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) |