blob: fbe5068dc3646f86d04a87612a90353c32ef8f76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
////////////////////////////////////////////////////////////////////////////////
// This source file is part of the ZipArchive Library Open Source distribution
// and is Copyrighted 2000 - 2022 by Artpol Software - Tadeusz Dracz
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// For the licensing details refer to the License.txt file.
//
// Web Site: https://www.artpol-software.com
////////////////////////////////////////////////////////////////////////////////
#ifndef ZIPARCHIVE_STDAFX_DOT_H
#error Do not include this file directly. Include stdafx.h instead
#endif
#if _MSC_VER > 1000
#if _MSC_VER < 1500
#if !defined WINVER && !defined _WIN32_WINNT
#if _MSC_VER < 1300
#define WINVER 0x0400
#else
#define WINVER 0x0501
#endif
#endif
#else
// Including this header for earlier versions of Visual Studio will cause
// warning messages with Platform SDK, but is safe otherwise.
#include "sdkddkver.h"
#endif
#pragma once
#endif
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
#define NO_WARN_MBCS_MFC_DEPRECATION
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#endif
#include <afx.h>
#include <afxwin.h>
typedef BOOL ZBOOL;
typedef FILETIME ZFILETIME;
#if _MSC_VER >= 1300 || _ZIP_FILE_IMPLEMENTATION == ZIP_ZFI_WIN || _ZIP_FILE_IMPLEMENTATION == ZIP_ZFI_STL
#define ZIP_FILE_USIZE ULONGLONG
#define ZIP_FILE_SIZE LONGLONG
#define ZIP_FILE_SIZEMAX _I64_MAX
#else
#define ZIP_FILE_USIZE DWORD
#define ZIP_FILE_SIZE LONG
#define ZIP_FILE_SIZEMAX MAXLONG
#endif
#ifndef _NOEXCEPT // for OS X
#define _NOEXCEPT
#endif
|