lzham_codec
lzham_codec copied to clipboard
Mac "error: expected unqualified-id"
trafficstars
https://github.com/richgel999/lzham_codec/issues/6 This issue is still happening, because the main branch source wasn't updated.
I can confirm that with latest Xcode:
https://github.com/richgel999/lzham_codec/blob/master/lzhamdecomp/lzham_traits.h#L70 #if defined(APPLE) || defined(NetBSD) #define LZHAM_IS_POD(T) std::__is_pod<T>::__value #else #define LZHAM_IS_POD(T) __is_pod(T) #endif
can just be replaced with #define LZHAM_IS_POD(T) __is_pod(T)
and compiles fine for Mac/iOS/iOS simulator