Closed crystalct closed 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.
Okeydokey, Windows and Linux have been warning-free for a while.
Hmm, why is that
deps/libchdr/src/libchdr_chd.c
change necessary?