diff --git a/lzhamdecomp/lzham_platform.cpp b/lzhamdecomp/lzham_platform.cpp index cd4f9dd..e5be9c9 100644 --- a/lzhamdecomp/lzham_platform.cpp +++ b/lzhamdecomp/lzham_platform.cpp @@ -61,7 +61,7 @@ void lzham_debug_break(void) { #if LZHAM_USE_WIN32_API DebugBreak(); -#elif (TARGET_OS_MAC == 1) && (TARGET_IPHONE_SIMULATOR == 0) && (TARGET_OS_IPHONE == 0) +#elif (TARGET_OS_MAC == 1) && (TARGET_IPHONE_SIMULATOR == 0) && (TARGET_OS_IPHONE == 0) && !defined(__clang__) __asm {int 3} #else assert(0); diff --git a/lzhamdecomp/lzham_traits.h b/lzhamdecomp/lzham_traits.h index 950c3fd..5dc2e80 100644 --- a/lzhamdecomp/lzham_traits.h +++ b/lzhamdecomp/lzham_traits.h @@ -67,7 +67,9 @@ namespace lzham // Defines type Q as bitwise copyable. #define LZHAM_DEFINE_BITWISE_COPYABLE(Q) template<> struct bitwise_copyable { enum { cFlag = true }; }; -#if defined(__APPLE__) || defined(__NetBSD__) +#if defined(__APPLE__) + #define LZHAM_IS_POD(T) std::is_pod::value +#elif defined(__NetBSD__) #define LZHAM_IS_POD(T) std::__is_pod::__value #else #define LZHAM_IS_POD(T) __is_pod(T)