e_os2.h
Go to the documentation of this file.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
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056 #include <openssl/opensslconf.h>
00057
00058 #ifndef HEADER_E_OS2_H
00059 #define HEADER_E_OS2_H
00060
00061 #ifdef __cplusplus
00062 extern "C" {
00063 #endif
00064
00065
00066
00067
00068
00069
00070
00071 #define OPENSSL_SYS_UNIX
00072
00073
00074 #if defined(__MWERKS__) && defined(macintosh) || defined(OPENSSL_SYSNAME_MAC)
00075 # undef OPENSSL_SYS_UNIX
00076 # define OPENSSL_SYS_MACINTOSH_CLASSIC
00077 #endif
00078
00079
00080 #if defined(NETWARE) || defined(OPENSSL_SYSNAME_NETWARE)
00081 # undef OPENSSL_SYS_UNIX
00082 # define OPENSSL_SYS_NETWARE
00083 #endif
00084
00085
00086
00087
00088
00089 #if defined(OPENSSL_SYSNAME_MSDOS)
00090 # undef OPENSSL_SYS_UNIX
00091 # define OPENSSL_SYS_MSDOS
00092 #endif
00093
00094
00095
00096 #if defined(OPENSSL_SYSNAME_UWIN)
00097 # undef OPENSSL_SYS_UNIX
00098 # define OPENSSL_SYS_WIN32_UWIN
00099 #else
00100 # if defined(__CYGWIN32__) || defined(OPENSSL_SYSNAME_CYGWIN32)
00101 # undef OPENSSL_SYS_UNIX
00102 # define OPENSSL_SYS_WIN32_CYGWIN
00103 # else
00104 # if defined(_WIN32) || defined(OPENSSL_SYSNAME_WIN32)
00105 # undef OPENSSL_SYS_UNIX
00106 # define OPENSSL_SYS_WIN32
00107 # endif
00108 # if defined(OPENSSL_SYSNAME_WINNT)
00109 # undef OPENSSL_SYS_UNIX
00110 # define OPENSSL_SYS_WINNT
00111 # endif
00112 # if defined(OPENSSL_SYSNAME_WINCE)
00113 # undef OPENSSL_SYS_UNIX
00114 # define OPENSSL_SYS_WINCE
00115 # endif
00116 # endif
00117 #endif
00118
00119
00120 #if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_WINNT) || defined(OPENSSL_SYS_WINCE)
00121 # undef OPENSSL_SYS_UNIX
00122 # define OPENSSL_SYS_WINDOWS
00123 # ifndef OPENSSL_SYS_MSDOS
00124 # define OPENSSL_SYS_MSDOS
00125 # endif
00126 #endif
00127
00128
00129
00130
00131 #ifdef OPENSSL_SYS_WINDOWS
00132 # ifndef OPENSSL_OPT_WINDLL
00133 # if defined(_WINDLL)
00134
00135 # define OPENSSL_OPT_WINDLL
00136 # endif
00137 # endif
00138 #endif
00139
00140
00141 #if defined(__VMS) || defined(VMS) || defined(OPENSSL_SYSNAME_VMS)
00142 # undef OPENSSL_SYS_UNIX
00143 # define OPENSSL_SYS_VMS
00144 # if defined(__DECC)
00145 # define OPENSSL_SYS_VMS_DECC
00146 # elif defined(__DECCXX)
00147 # define OPENSSL_SYS_VMS_DECC
00148 # define OPENSSL_SYS_VMS_DECCXX
00149 # else
00150 # define OPENSSL_SYS_VMS_NODECC
00151 # endif
00152 #endif
00153
00154
00155 #if defined(__EMX__) || defined(__OS2__)
00156 # undef OPENSSL_SYS_UNIX
00157 # define OPENSSL_SYS_OS2
00158 #endif
00159
00160
00161 #ifdef OPENSSL_SYS_UNIX
00162 # if defined(linux) || defined(__linux__) || defined(OPENSSL_SYSNAME_LINUX)
00163 # define OPENSSL_SYS_LINUX
00164 # endif
00165 # ifdef OPENSSL_SYSNAME_MPE
00166 # define OPENSSL_SYS_MPE
00167 # endif
00168 # ifdef OPENSSL_SYSNAME_SNI
00169 # define OPENSSL_SYS_SNI
00170 # endif
00171 # ifdef OPENSSL_SYSNAME_ULTRASPARC
00172 # define OPENSSL_SYS_ULTRASPARC
00173 # endif
00174 # ifdef OPENSSL_SYSNAME_NEWS4
00175 # define OPENSSL_SYS_NEWS4
00176 # endif
00177 # ifdef OPENSSL_SYSNAME_MACOSX
00178 # define OPENSSL_SYS_MACOSX
00179 # endif
00180 # ifdef OPENSSL_SYSNAME_MACOSX_RHAPSODY
00181 # define OPENSSL_SYS_MACOSX_RHAPSODY
00182 # define OPENSSL_SYS_MACOSX
00183 # endif
00184 # ifdef OPENSSL_SYSNAME_SUNOS
00185 # define OPENSSL_SYS_SUNOS
00186 #endif
00187 # if defined(_CRAY) || defined(OPENSSL_SYSNAME_CRAY)
00188 # define OPENSSL_SYS_CRAY
00189 # endif
00190 # if defined(_AIX) || defined(OPENSSL_SYSNAME_AIX)
00191 # define OPENSSL_SYS_AIX
00192 # endif
00193 #endif
00194
00195
00196 #ifdef OPENSSL_SYSNAME_VOS
00197 # define OPENSSL_SYS_VOS
00198 #endif
00199
00200
00201 #ifdef OPENSSL_SYSNAME_VXWORKS
00202 # define OPENSSL_SYS_VXWORKS
00203 #endif
00204
00210
00211 #ifdef OPENSSL_SYS_MSDOS
00212 # define OPENSSL_UNISTD_IO <io.h>
00213 # define OPENSSL_DECLARE_EXIT extern void exit(int);
00214 #else
00215 # define OPENSSL_UNISTD_IO OPENSSL_UNISTD
00216 # define OPENSSL_DECLARE_EXIT
00217 #endif
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238 #if defined(OPENSSL_SYS_VMS_NODECC)
00239 # define OPENSSL_EXPORT globalref
00240 # define OPENSSL_IMPORT globalref
00241 # define OPENSSL_GLOBAL globaldef
00242 #elif defined(OPENSSL_SYS_WINDOWS) && defined(OPENSSL_OPT_WINDLL)
00243 # define OPENSSL_EXPORT extern __declspec(dllexport)
00244 # define OPENSSL_IMPORT extern __declspec(dllimport)
00245 # define OPENSSL_GLOBAL
00246 #else
00247 # define OPENSSL_EXPORT extern
00248 # define OPENSSL_IMPORT extern
00249 # define OPENSSL_GLOBAL
00250 #endif
00251 #define OPENSSL_EXTERN OPENSSL_IMPORT
00252
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263 #ifdef OPENSSL_EXPORT_VAR_AS_FUNCTION
00264 # define OPENSSL_IMPLEMENT_GLOBAL(type,name) \
00265 extern type _hide_##name; \
00266 type *_shadow_##name(void) { return &_hide_##name; } \
00267 static type _hide_##name
00268 # define OPENSSL_DECLARE_GLOBAL(type,name) type *_shadow_##name(void)
00269 # define OPENSSL_GLOBAL_REF(name) (*(_shadow_##name()))
00270 #else
00271 # define OPENSSL_IMPLEMENT_GLOBAL(type,name) OPENSSL_GLOBAL type _shadow_##name
00272 # define OPENSSL_DECLARE_GLOBAL(type,name) OPENSSL_EXPORT type _shadow_##name
00273 # define OPENSSL_GLOBAL_REF(name) _shadow_##name
00274 #endif
00275
00276 #ifdef __cplusplus
00277 }
00278 #endif
00279 #endif