richgel999 / lzham_codec

Lossless data compression codec with LZMA-like ratios but 1.5x-8x faster decompression speed, C/C++
Other
693 stars 71 forks source link

Mac "error: expected unqualified-id" #26

Open GregSlazinski opened 3 years ago

GregSlazinski commented 3 years ago

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::__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