2 #ifndef ZIPIOS_CONFIG_HPP
3 #define ZIPIOS_CONFIG_HPP
6 Zipios -- a small C++ library that provides easy access to .zip files.
8 Copyright (C) 2000-2007 Thomas Sondergaard
9 Copyright (C) 2015-2019 Made to Order Software Corporation
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.
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.
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
27 * \brief zipios configuration header.
29 * Various configuration parameters, all of which are defined using
30 * system specific \#ifdef and similar preprocessor tests.
32 * This file also includes some general information such as the library
33 * version and common functions and types that are public.
43 #define ZIPIOS_VERSION_MAJOR @ZIPIOS_VERSION_MAJOR@
44 #define ZIPIOS_VERSION_MINOR @ZIPIOS_VERSION_MINOR@
45 #define ZIPIOS_VERSION_PATCH @ZIPIOS_VERSION_PATCH@
46 #define ZIPIOS_VERSION_STRING "@ZIPIOS_VERSION_MAJOR@.@ZIPIOS_VERSION_MINOR@.@ZIPIOS_VERSION_PATCH@"
53 inline char const *getVersion()
55 return ZIPIOS_VERSION_STRING;
59 typedef std::streamoff offset_t;
62 inline size_t getBufferSize()
74 // Disable class-browser warning about truncated template-names
76 //#pragma warning( disable : 4786 )
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)
90 // todo: change to _stat64 or whatever is required to get full 64 bit support
91 typedef struct stat os_stat_t;
95 typedef struct stat os_stat_t;