zip: Small change to attributes decompression
[deark.git] / src / deark-config.h
blob060b8e345305bbec5f8ea88f13ef03355550c81b
1 // This file is part of Deark.
2 // Copyright (C) 2016 Jason Summers
3 // See the file COPYING for terms of use.
5 // This file is for things that need to happen before the system header files
6 // are #included. That includes #defines that might help us decide which system
7 // headers to #include.
9 #ifdef DEARK_CONFIG_H_INC
10 #error "deark-config.h included multiple times"
11 #endif
12 #define DEARK_CONFIG_H_INC
14 #if !defined(DE_WINDOWS) && !defined(DE_UNIX)
15 #ifdef _WIN32
16 #define DE_WINDOWS
17 #else
18 #define DE_UNIX
19 #endif
20 #endif
22 #ifdef DE_WINDOWS
24 #ifndef _WIN32_WINNT
25 #define _WIN32_WINNT 0x0501 // 0x0501=WinXP, 0x0600=Vista
26 #endif
28 #ifndef UNICODE
29 #define UNICODE
30 #endif
31 #ifndef _UNICODE
32 #define _UNICODE
33 #endif
35 #ifndef DE_USE_WINDOWS_INTTYPES
36 #define DE_USE_WINDOWS_INTTYPES 1
37 #endif
39 #endif
41 #ifdef DE_UNIX
43 #ifndef DE_USE_FSEEKO
44 #define DE_USE_FSEEKO 1
45 #endif
47 #ifndef DE_USE_LSTAT
48 #define DE_USE_LSTAT 1
49 #endif
51 #ifndef DE_USE_WINDOWS_INTTYPES
52 #define DE_USE_WINDOWS_INTTYPES 0
53 #endif
55 #endif
57 // Post-system-header platform-specific things can optionally go in a
58 // deark-config2.h file. See deark.h.
59 //#define DE_USE_CONFIG2_H