mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 23:08:31 +00:00
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:
parent
4ce5664c4b
commit
4d8f884e76
345 changed files with 298 additions and 77763 deletions
18
third_party/infozip/zip/zipfile.c
vendored
18
third_party/infozip/zip/zipfile.c
vendored
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue