diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-07-10 16:36:12 -0700 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-07-10 16:36:12 -0700 |
commit | 867c28ae03b3b2883713896765f3ff76eaf90a19 (patch) | |
tree | 8ff8cf3ab24d2f167c19217efb8175a8841c0359 /src/common/swap.h | |
parent | ac7bc214abe6b8f9eb2c122709ea99a0ca4b4245 (diff) | |
parent | 4964a359e1a82f87a9772140fd1d933c5812c2e7 (diff) |
Merge pull request #876 from linkmauve/include-cleanups
Cleanup includes, mostly in common
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 588cebc7..b92e5bfa 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) |