00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef GWENHYWFARAPI_H
00029 #define GWENHYWFARAPI_H
00030
00031 #include <gwenhywfar/types.h>
00032
00033 #ifdef GWENHYWFAR_IS_SUBPROJECT
00034 # define GWENHYWFAR_API
00035 # define GWENHYWFAR_EXPORT
00036 # define GWENHYWFAR_NOEXPORT
00037 #else
00038 # ifdef BUILDING_GWENHYWFAR
00039
00040 # if GWENHYWFAR_SYS_IS_WINDOWS
00041
00042 # ifdef __declspec
00043 # define GWENHYWFAR_API __declspec (dllexport)
00044 # else
00045 # define GWENHYWFAR_API
00046 # endif
00047 # else
00048
00049 # ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
00050 # define GWENHYWFAR_API __attribute__((visibility("default")))
00051 # else
00052 # define GWENHYWFAR_API
00053 # endif
00054 # endif
00055 # else
00056
00057 # if GWENHYWFAR_SYS_IS_WINDOWS
00058
00059 # ifdef __declspec
00060 # define GWENHYWFAR_API __declspec (dllimport)
00061 # else
00062 # define GWENHYWFAR_API
00063 # endif
00064 # else
00065
00066 # define GWENHYWFAR_API
00067 # endif
00068 # endif
00069
00070 # ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
00071 # define GWENHYWFAR_EXPORT __attribute__((visibility("default")))
00072 # define GWENHYWFAR_NOEXPORT __attribute__((visibility("hidden")))
00073 # else
00074 # define GWENHYWFAR_EXPORT
00075 # define GWENHYWFAR_NOEXPORT
00076 # endif
00077
00078 #endif
00079
00080 #if GWENHYWFAR_SYS_IS_WINDOWS
00081 # define GWENHYWFAR_CB __stdcall
00082 #else
00083 # define GWENHYWFAR_CB
00084 #endif
00085
00086 #if GWENHYWFAR_SYS_IS_WINDOWS
00087 # define GWEN_DIR_SEPARATOR '\\'
00088 # define GWEN_DIR_SEPARATOR_S "\\"
00089 # define GWEN_SEARCHPATH_SEPARATOR ';'
00090 # define GWEN_SEARCHPATH_SEPARATOR_S ";"
00091 #else
00092
00094 # define GWEN_DIR_SEPARATOR '/'
00095
00097 # define GWEN_DIR_SEPARATOR_S "/"
00098
00100 # define GWEN_SEARCHPATH_SEPARATOR ':'
00101
00103 # define GWEN_SEARCHPATH_SEPARATOR_S ":"
00104 #endif
00105
00106
00107
00108
00109 #ifndef __GNUC_PREREQ
00110 # if defined __GNUC__ && defined __GNUC_MINOR__
00111 # define __GNUC_PREREQ(maj, min) \
00112 ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
00113 # else
00114 # define __GNUC_PREREQ(maj, min) 0
00115 # endif
00116 #endif
00117
00118
00119
00120
00121 #ifndef __STRING
00122 # define __STRING(x) #x
00123 #endif
00124
00125
00126
00127 #include <string.h>
00128 #include <gwenhywfar/system.h>
00129
00130
00131 #if __GNUC_PREREQ(3, 0)
00132
00133 # define DEPRECATED __attribute__((deprecated))
00134 #else
00135 # define DEPRECATED
00136 #endif
00137
00138
00139 #define GWEN_TIMEOUT_NONE (0)
00140 #define GWEN_TIMEOUT_FOREVER (-1)
00141
00142
00143 #endif
00144
00145