PoDoFo
1.1.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
12
// Declare ssize_t as a signed alternative to size_t,
13
// useful for example to provide optional size argument
14
#if defined(_MSC_VER)
15
// Fix missing posix "ssize_t" typedef in MSVC
16
#include <BaseTsd.h>
17
typedef
SSIZE_T ssize_t;
18
#else
19
// Posix has ssize_t
20
#include <sys/types.h>
21
#endif
22
23
// Make sure that DEBUG is defined
24
// for debug builds on Windows
25
// as Visual Studio defines only _DEBUG
26
#ifdef _DEBUG
27
#ifndef DEBUG
28
#define DEBUG 1
29
#endif
// DEBUG
30
#endif
// _DEBUG
31
32
// Silence some annoying warnings from Visual Studio
33
#ifdef _MSC_VER
34
#pragma warning(disable: 4251)
35
#pragma warning(disable: 4275)
36
#endif
// _MSC_VER
37
38
#endif
// PODOFO_BASE_COMPAT_H
Generated by
1.9.8