added iOS source code
[wl-app.git] / iOS / Pods / SSZipArchive / SSZipArchive / minizip / minishared.h
1 #ifndef _MINISHARED_H
2 #define _MINISHARED_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #ifdef _WIN32
9 #  define MKDIR(d) _mkdir(d)
10 #  define CHDIR(d) _chdir(d)
11 #else
12 #  define MKDIR(d) mkdir(d, 0775)
13 #  define CHDIR(d) chdir(d)
14 #endif
15
16 /***************************************************************************/
17
18 /* Get a file's date and time in dos format */
19 uint32_t get_file_date(const char *path, uint32_t *dos_date);
20
21 /* Sets a file's date and time in dos format */
22 void change_file_date(const char *path, uint32_t dos_date);
23
24 /* Convert dos date/time format to struct tm */
25 int dosdate_to_tm(uint64_t dos_date, struct tm *ptm);
26
27 /* Convert dos date/time format to time_t */
28 time_t dosdate_to_time_t(uint64_t dos_date);
29
30 /* Convert struct tm to dos date/time format */
31 uint32_t tm_to_dosdate(const struct tm *ptm);
32
33 /* Create a directory and all subdirectories */
34 int makedir(const char *newdir);
35
36 /* Check to see if a file exists */
37 int check_file_exists(const char *path);
38
39 /* Check to see if a file is over 4GB and needs ZIP64 extension */
40 int is_large_file(const char *path);
41
42 /* Print a 64-bit number for compatibility */
43 void display_zpos64(uint64_t n, int size_char);
44
45 /***************************************************************************/
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif /* _MINISHARED_H */