lzham_codec icon indicating copy to clipboard operation
lzham_codec copied to clipboard

Mac "error: expected unqualified-id"

Open GregSlazinski opened this issue 5 years ago • 0 comments
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

GregSlazinski avatar Sep 29 '20 07:09 GregSlazinski