libroadrunner C API
rrc_exporter.h
Go to the documentation of this file.
1 
42 #ifndef rrc_exporterH
43 #define rrc_exporterH
44 
45 //Export/Import wrappers functions
46 #if defined(_WIN32) || defined(__WIN32__)
47  #if defined(STATIC_RRC)
48  #define C_DECL_SPEC
49  #else
50  #if defined(EXPORT_RRC)
51  #define C_DECL_SPEC __declspec(dllexport)
52  #else
53  #define C_DECL_SPEC __declspec(dllimport)
54  #endif
55  #endif
56 #else
57  #define C_DECL_SPEC
58 #endif
59 
60 
61 //C function calling conventions
62 #if defined(_MSC_VER)
63  #define rrcCallConv __cdecl
64 #elif defined(__CODEGEARC__)
65  #define rrcCallConv __cdecl
66 #else
67  #define rrcCallConv
68 #endif
69 
70 #if !defined(__cplusplus)
71  #if !defined(_MSC_VER)
72  #include "stdbool.h"
73  #else //VS don't have stdbool.h
77  typedef int bool;
78  #define false 0
79  #define true 1
80  #endif
81 #endif
82 
83 #endif