zipios 2.3.4
Zipios -- a small C++ library providing easy access to .zip files.
zipios-config.hpp
Go to the documentation of this file.
1#pragma once
2#ifndef ZIPIOS_CONFIG_HPP
3#define ZIPIOS_CONFIG_HPP
4
5/*
6 Zipios -- a small C++ library that provides easy access to .zip files.
7
8 Copyright (C) 2000-2007 Thomas Sondergaard
9 Copyright (c) 2015-2022 Made to Order Software Corp. All Rights Reserved
10
11 This library is free software; you can redistribute it and/or
12 modify it under the terms of the GNU Lesser General Public
13 License as published by the Free Software Foundation; either
14 version 2.1 of the License, or (at your option) any later version.
15
16 This library is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
20
21 You should have received a copy of the GNU Lesser General Public
22 License along with this library; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24*/
25
36#include <sys/stat.h>
37
38#include <iostream>
39
40#include <stdio.h>
41
42
43#define ZIPIOS_VERSION_MAJOR 2
44#define ZIPIOS_VERSION_MINOR 3
45#define ZIPIOS_VERSION_PATCH 4
46#define ZIPIOS_VERSION_STRING "2.3.4"
47
48
49namespace zipios
50{
51
52
53inline char const * getVersion()
54{
56}
57
58
59typedef std::streamoff offset_t;
60
61
62inline size_t getBufferSize()
63{
64 return BUFSIZ;
65}
66
67
68} // zipios namespace
69
70
71// Visual C++
72#ifdef _MSC_VER
73
74// Disable class-browser warning about truncated template-names
75// Still needed? TBD
76//#pragma warning( disable : 4786 )
77
78#endif //_MSC_VER
79
80#ifdef WIN32
81
82// Needed for FilePath
83#define S_ISREG(mode) (((mode) & _S_IFREG) == _S_IFREG)
84#define S_ISDIR(mode) (((mode) & _S_IFDIR) == _S_IFDIR)
85#define S_ISCHR(mode) (((mode) & _S_IFCHR) == _S_IFCHR)
86#define S_ISBLK(mode) 0
87#define S_ISSOCK(mode) 0
88#define S_ISFIFO(mode) (((mode) & _S_IFIFO) == _S_IFIFO)
89
90// todo: change to _stat64 or whatever is required to get full 64 bit support
91typedef struct stat os_stat_t;
92
93#else
94
95typedef struct stat os_stat_t;
96
97#endif
98
99// vim: ts=4 sw=4 et
100#endif
The zipios namespace includes the Zipios library definitions.
std::streamoff offset_t
char const * getVersion()
size_t getBufferSize()
#define ZIPIOS_VERSION_STRING
struct stat os_stat_t