21#ifndef PDFTOOLBOX_PLATFORM_H__
22#define PDFTOOLBOX_PLATFORM_H__
27#ifndef PDFTOOLBOX_CALL
29#define PDFTOOLBOX_CALL __stdcall
31#define PDFTOOLBOX_CALL
35#if defined(UNICODE) && !defined(_UNICODE)
42#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
51#define STDCALL __stdcall
55#ifdef PDFTOOLBOX_STATIC_DEFINE
56#define PDFTOOLBOX_EXPORT
57#define PDFTOOLBOX_NO_EXPORT
59#ifndef PDFTOOLBOX_EXPORT
60#ifdef PdfToolbox_EXPORTS
62#define PDFTOOLBOX_EXPORT __declspec(dllexport)
65#define PDFTOOLBOX_EXPORT __declspec(dllimport)
69#ifndef PDFTOOLBOX_NO_EXPORT
70#define PDFTOOLBOX_NO_EXPORT
74#ifndef PDFTOOLBOX_DEPRECATED
75#define PDFTOOLBOX_DEPRECATED __declspec(deprecated)
78#ifndef PDFTOOLBOX_DEPRECATED_EXPORT
79#define PDFTOOLBOX_DEPRECATED_EXPORT PDFTOOLBOX_EXPORT PDFTOOLBOX_DEPRECATED
82#ifndef PDFTOOLBOX_DEPRECATED_NO_EXPORT
83#define PDFTOOLBOX_DEPRECATED_NO_EXPORT PDFTOOLBOX_NO_EXPORT PDFTOOLBOX_DEPRECATED
87#ifndef PDFTOOLBOX_NO_DEPRECATED
88#define PDFTOOLBOX_NO_DEPRECATED
105#if defined(__APPLE__) || defined(__linux__)
106#ifdef PDFTOOLBOX_STATIC_DEFINE
107#define PDFTOOLBOX_EXPORT
108#define PDFTOOLBOX_NO_EXPORT
110#ifndef PDFTOOLBOX_EXPORT
111#ifdef PdfToolbox_EXPORTS
113#define PDFTOOLBOX_EXPORT __attribute__((visibility("default")))
116#define PDFTOOLBOX_EXPORT __attribute__((visibility("default")))
120#ifndef PDFTOOLBOX_NO_EXPORT
121#define PDFTOOLBOX_NO_EXPORT __attribute__((visibility("hidden")))
125#ifndef PDFTOOLBOX_DEPRECATED
126#define PDFTOOLBOX_DEPRECATED __attribute__((__deprecated__))
129#ifndef PDFTOOLBOX_DEPRECATED_EXPORT
130#define PDFTOOLBOX_DEPRECATED_EXPORT PDFTOOLBOX_EXPORT PDFTOOLBOX_DEPRECATED
133#ifndef PDFTOOLBOX_DEPRECATED_NO_EXPORT
134#define PDFTOOLBOX_DEPRECATED_NO_EXPORT PDFTOOLBOX_NO_EXPORT PDFTOOLBOX_DEPRECATED
138#ifndef PDFTOOLBOX_NO_DEPRECATED
139#define PDFTOOLBOX_NO_DEPRECATED
143#define PDFTOOLBOX_EXPORT