00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __PORT_EXPORT_H
00021 #define __PORT_EXPORT_H
00022
00023
00024
00025
00026
00027
00028
00029
00036 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00037
00038 #ifdef _WIN32
00039
00040 #ifndef HAS_INLINE
00041 #define HAS_INLINE
00042 #endif
00043
00044 #ifdef __cplusplus
00045
00046 #define PORT_EXPORT_DECL extern "C" __declspec(dllexport)
00047 #define PORT_IMPORT_DECL extern "C" __declspec(dllimport)
00048
00049 #else
00050
00051 #define PORT_EXPORT_DECL __declspec(dllexport)
00052 #define PORT_IMPORT_DECL __declspec(dllimport)
00053 #endif
00054
00055 #else
00056
00057 #ifdef __cplusplus
00058 #define PORT_EXPORT_DECL extern "C"
00059 #define PORT_IMPORT_DECL extern "C"
00060 #else
00061 #define PORT_EXPORT_DECL extern
00062 #define PORT_IMPORT_DECL extern
00063 #endif
00064
00065 #endif
00066
00067 #if !defined(PORT_EXPORT_DECL) || !defined(PORT_IMPORT_DECL)
00068 #error Symbol import/export pair not defined.
00069 #endif
00070
00071 #endif
00072
00073
00074 #ifdef __cplusplus
00075
00079 #define EXTERN extern "C"
00080 #else
00081
00085 #define EXTERN extern
00086 #endif
00087
00088 #ifdef __cplusplus
00089
00093 #define PINLINE inline
00094 #elif defined(_WIN32)
00095
00099 #define PINLINE _inline
00100 #elif defined(__GNUC__)
00101
00105 #ifdef __vxworks
00106 #define PINLINE __inline__
00107 #else
00108 #define PINLINE __inline__
00109 #endif
00110
00111 #elif !defined(PINLINE)
00112
00116 #define PINLINE
00117 #endif
00118
00123 #endif