PoDoFo
1.2.0
Loading...
Searching...
No Matches
src
podofo
auxiliary
basecompat.h
1
// SPDX-FileCopyrightText: 2007 Dominik Seichter <domseichter@web.de>
2
// SPDX-FileCopyrightText: 2020 Francesco Pretto <ceztko@gmail.com>
3
// SPDX-License-Identifier: LGPL-2.0-or-later OR MPL-2.0
4
5
#ifndef PODOFO_BASE_COMPAT_H
6
#define PODOFO_BASE_COMPAT_H
7
9
10
// Declare ssize_t as a signed alternative to size_t,
11
// useful for example to provide optional size argument
12
#if defined(_MSC_VER)
13
// Fix missing posix "ssize_t" typedef in MSVC
14
#include <BaseTsd.h>
15
typedef
SSIZE_T ssize_t;
16
#else
17
// Posix has ssize_t
18
#include <sys/types.h>
19
#endif
20
21
// Silence some annoying warnings from Visual Studio
22
#ifdef _MSC_VER
23
#pragma warning(disable: 4251)
24
#pragma warning(disable: 4275)
25
#endif
// _MSC_VER
26
27
#endif
// PODOFO_BASE_COMPAT_H
Generated by
1.9.8