libretro / libretro-uae

PUAE libretro
GNU General Public License v2.0
115 stars 62 forks source link

PS3: build fix and .lha load fix #490

Closed crystalct closed 2 years ago

sonninnos commented 2 years ago

Hmm, why is that deps/libchdr/src/libchdr_chd.c change necessary?

crystalct commented 2 years ago

Both 7zTypes.h and zlib.h have typedef unsigned char Byte; In gcc 4.x that causes a compile error (probably in modern GCCs it's a warining). But 7zTypes.h has this:

#ifndef ZCONF_H
typedef unsigned char Byte;
#endif

So just put #include "zlib.h" before #include "LzmaEnc.h" (that contains#include "7zTypes.h") to avoid that error. Simple.

sonninnos commented 2 years ago

Okeydokey, Windows and Linux have been warning-free for a while.