Get Info-ZIP's zip to build

* removed unnecessary files (like amiga/osdep.h)
* makefile has 4 targets: zip, zipnote, zipcloak, zipsplit
* added clang-format off at the start of all source files
* added necessary headers
This commit is contained in:
ahgamut 2021-06-10 05:30:58 +05:30 committed by Justine Tunney
parent 4ce5664c4b
commit 4d8f884e76
345 changed files with 298 additions and 77763 deletions

View file

@ -1,3 +1,4 @@
/* clang-format off */
/*
zipfile.c - Zip 3
@ -13,19 +14,22 @@
*/
#define __ZIPFILE_C
#include "zip.h"
#include "revision.h"
#include "third_party/infozip/zip/zip.h"
#include "third_party/infozip/zip/revision.h"
#ifdef UNICODE_SUPPORT
# include "crc32.h"
# include "third_party/infozip/zip/crc32.h"
#endif
/* for realloc 2/6/2005 EG */
#include <stdlib.h>
#include <errno.h>
#include "libc/mem/mem.h"
#include "libc/alg/alg.h"
#include "libc/errno.h"
/* for toupper() */
#include <ctype.h>
#include "libc/str/str.h"
#include "libc/fmt/fmt.h"
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#ifdef VMS
# include "vms/vms.h"