Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | daniel-mar | 1 | #ifndef _STDAFX_H_ |
2 | #define _STDAFX_H_ |
||
3 | // stdafx.h : include file for standard system include files, |
||
4 | // or project specific include files that are used frequently, but |
||
5 | // are changed infrequently |
||
6 | // |
||
7 | /* |
||
8 | ************************************************************************ |
||
9 | Copyright (C) 2009, 2010 by Russell J. Peters, Roger Aelbrecht |
||
10 | |||
11 | This file is part of TZipMaster Version 1.9. |
||
12 | |||
13 | TZipMaster is free software: you can redistribute it and/or modify |
||
14 | it under the terms of the GNU Lesser General Public License as published by |
||
15 | the Free Software Foundation, either version 3 of the License, or |
||
16 | (at your option) any later version. |
||
17 | |||
18 | TZipMaster is distributed in the hope that it will be useful, |
||
19 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
21 | GNU Lesser General Public License for more details. |
||
22 | |||
23 | You should have received a copy of the GNU Lesser General Public License |
||
24 | along with TZipMaster. If not, see <http://www.gnu.org/licenses/>. |
||
25 | |||
26 | contact: problems@delphizip.org (include ZipMaster in the subject). |
||
27 | updates: http://www.delphizip.org |
||
28 | DelphiZip maillist subscribe at http://www.freelists.org/list/delphizip |
||
29 | ************************************************************************/ |
||
30 | |||
31 | #pragma once |
||
32 | |||
33 | #define UNICODE |
||
34 | #ifndef _UNICODE |
||
35 | #define _UNICODE |
||
36 | #endif |
||
37 | // Modify the following defines if you have to target a platform prior to the ones specified below. |
||
38 | #ifdef ALLOW_WIN98 |
||
39 | #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later. |
||
40 | #define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later. |
||
41 | #endif |
||
42 | #ifndef WINVER // Allow use of features specific to Windows 98 or later. |
||
43 | #define WINVER 0x0400 |
||
44 | #endif |
||
45 | #else |
||
46 | // Refer to MSDN for the latest info on corresponding values for different platforms. |
||
47 | #ifndef WINVER // Allow use of features specific to Windows XP or later. |
||
48 | //#define WINVER 0x0400 |
||
49 | #define WINVER 0x0501 // Change this to the appropriate value to target other versions of Windows. |
||
50 | #endif |
||
51 | // |
||
52 | #ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. |
||
53 | #define _WIN32_WINNT 0x0500 // Change this to the appropriate value to target other versions of Windows. |
||
54 | #endif |
||
55 | #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later. |
||
56 | #define _WIN32_WINDOWS 0x0500 // Change this to the appropriate value to target Windows Me or later. |
||
57 | #endif |
||
58 | // |
||
59 | // |
||
60 | //#ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later. |
||
61 | //#define _WIN32_IE 0x0600 // Change this to the appropriate value to target other versions of IE. |
||
62 | //#endif |
||
63 | // |
||
64 | #endif |
||
65 | |||
66 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers |
||
67 | // Windows Header Files: |
||
68 | #include <windows.h> |
||
69 | |||
70 | |||
71 | |||
72 | #include <stdio.h> |
||
73 | #include <stdlib.h> |
||
74 | #include <tchar.h> |
||
75 | #include <time.h> |
||
76 | #include <sys\types.h> |
||
77 | #include <errno.h> |
||
78 | #ifndef MAXINT |
||
79 | #include <values.h> |
||
80 | #endif |
||
81 | #if defined(__BORLANDC__) && (__BORLANDC__ < 0x0570) |
||
82 | // #include <values.h> |
||
83 | #define FOF_NORECURSION 0x1000 |
||
84 | #define INVALID_SET_FILE_POINTER ((DWORD)-1) |
||
85 | using namespace std; |
||
86 | #endif |
||
87 | #endif |
||
88 | |||
89 | |||
90 | |||
91 | |||
92 |