From 7a136b8a84f9b21e120efe734f86725c46b8531b Mon Sep 17 00:00:00 2001 From: bunnei Date: Tue, 22 Apr 2014 19:42:29 -0700 Subject: fixes to build on linux --- src/common/file_util.cpp | 2 +- src/common/swap.h | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'src/common') diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index d36304d9..47ad964d 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -672,7 +672,7 @@ const std::string& GetUserPath(const unsigned int DirIDX, const std::string &new else paths[D_USER_IDX] = std::string(getenv("HOME") ? getenv("HOME") : getenv("PWD") ? - getenv("PWD") : "") + DIR_SEP DOLPHIN_DATA_DIR DIR_SEP; + getenv("PWD") : "") + DIR_SEP EMU_DATA_DIR DIR_SEP; #endif paths[D_CONFIG_IDX] = paths[D_USER_IDX] + CONFIG_DIR DIR_SEP; diff --git a/src/common/swap.h b/src/common/swap.h index d07d9fcc..123019fd 100644 --- a/src/common/swap.h +++ b/src/common/swap.h @@ -497,27 +497,27 @@ typedef s64 s64_le; typedef float float_le; typedef double double_le; -typedef swap_struct_t> u64_be; -typedef swap_struct_t> s64_be; +typedef swap_struct_t > u64_be; +typedef swap_struct_t > s64_be; -typedef swap_struct_t> u32_be; -typedef swap_struct_t> s32_be; +typedef swap_struct_t > u32_be; +typedef swap_struct_t > s32_be; -typedef swap_struct_t> u16_be; -typedef swap_struct_t> s16_be; +typedef swap_struct_t > u16_be; +typedef swap_struct_t > s16_be; typedef swap_struct_t > float_be; typedef swap_struct_t > double_be; #else -typedef swap_struct_t> u64_le; -typedef swap_struct_t> s64_le; +typedef swap_struct_t > u64_le; +typedef swap_struct_t > s64_le; -typedef swap_struct_t> u32_le; -typedef swap_struct_t> s32_le; +typedef swap_struct_t > u32_le; +typedef swap_struct_t > s32_le; -typedef swap_struct_t> u16_le; -typedef swap_struct_t> s16_le; +typedef swap_struct_t > u16_le; +typedef swap_struct_t< s16, swap_16_t > s16_le; typedef swap_struct_t > float_le; typedef swap_struct_t > double_le; @@ -532,4 +532,4 @@ typedef s64 s64_be; typedef float float_be; typedef double double_be; -#endif \ No newline at end of file +#endif -- cgit v1.2.3