Vanilla.PDF  1.3.0
Cross-platform toolkit for creating and modifying PDF documents
c_export.h
Go to the documentation of this file.
1 #ifndef _C_EXPORT_H
2 #define _C_EXPORT_H
3 
4 #include "c_platform.h"
5 
12 #if defined(COMPILER_MICROSOFT_VISUAL_STUDIO) && defined(ENVIRONMENT_32_BIT)
13  #define CALLING_CONVENTION __cdecl
14 #elif defined(COMPILER_GCC) && defined(ENVIRONMENT_32_BIT)
15  #define CALLING_CONVENTION __attribute__ ((cdecl))
16 #else
17  #define CALLING_CONVENTION
18 #endif
19 
20 #if defined(VANILLAPDF_CONFIGURATION_DLL) && defined(COMPILER_MICROSOFT_VISUAL_STUDIO)
21  #if defined(VANILLAPDF_EXPORTS)
22  #define VANILLAPDF_API __declspec(dllexport)
23  #else
24  #define VANILLAPDF_API __declspec(dllimport)
25  #endif
26 #else
27  #define VANILLAPDF_API
28 #endif
29 
30 #endif /* _C_EXPORT_H */
This file contains macro declarations about current platform and compiler.