mirror of
https://github.com/libretro/vice-libretro.git
synced 2024-11-23 08:19:46 +00:00
Disable 7zip with static builds
This commit is contained in:
parent
39e22af170
commit
89877fa78a
5
Makefile
5
Makefile
@ -384,6 +384,11 @@ else
|
||||
LDFLAGS += -s
|
||||
endif
|
||||
|
||||
# Skip 7zip for static builds
|
||||
ifneq ($(STATIC_LINKING), 1)
|
||||
COMMONFLAGS += -DHAVE_7ZIP
|
||||
endif
|
||||
|
||||
COMMONFLAGS += -DWANT_ZLIB -DHAVE_CONFIG_H -D__LIBRETRO__ -DCORE_NAME=\"$(EMUTYPE)\"
|
||||
|
||||
include Makefile.common
|
||||
|
@ -282,6 +282,7 @@ void zip_uncompress(char *in, char *out, char *lastfile)
|
||||
}
|
||||
|
||||
/* 7zip */
|
||||
#ifdef HAVE_7ZIP
|
||||
struct sevenzip_context_t
|
||||
{
|
||||
uint8_t *output;
|
||||
@ -476,6 +477,11 @@ void sevenzip_uncompress(char *in, char *out, char *lastfile)
|
||||
SzArEx_Free(&db, &allocImp);
|
||||
File_Close(&archiveStream.file);
|
||||
}
|
||||
#else
|
||||
void sevenzip_uncompress(char *in, char *out, char *lastfile)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
/* NIBTOOLS */
|
||||
typedef unsigned char BYTE;
|
||||
|
Loading…
Reference in New Issue
Block a user