e_os2.h revision 100928
12522Sraf/* e_os2.h */ 22522Sraf 32522Sraf#ifndef HEADER_E_OS2_H 42522Sraf#define HEADER_E_OS2_H 52522Sraf 62522Sraf#include <openssl/opensslconf.h> /* OPENSSL_UNISTD */ 72522Sraf 82522Sraf#ifdef __cplusplus 92522Srafextern "C" { 102522Sraf#endif 112522Sraf 122522Sraf#ifdef MSDOS 132522Sraf# define OPENSSL_UNISTD_IO <io.h> 142522Sraf# define OPENSSL_DECLARE_EXIT extern void exit(int); 152522Sraf#else 162522Sraf# define OPENSSL_UNISTD_IO OPENSSL_UNISTD 172522Sraf# define OPENSSL_DECLARE_EXIT /* declared in unistd.h */ 182522Sraf#endif 192522Sraf 202522Sraf/* Definitions of OPENSSL_GLOBAL and OPENSSL_EXTERN, 212522Sraf to define and declare certain global 2212692SAli.Bahrami@Oracle.COM symbols that, with some compilers under VMS, have to be defined and 232522Sraf declared explicitely with globaldef and globalref. On other OS:es, 248744SAli.Bahrami@Sun.COM these macros are defined with something sensible. */ 258744SAli.Bahrami@Sun.COM 268744SAli.Bahrami@Sun.COM#if defined(VMS) && !defined(__DECC) && !defined(__DECCXX) 278744SAli.Bahrami@Sun.COM# define OPENSSL_EXTERN globalref 288744SAli.Bahrami@Sun.COM# define OPENSSL_GLOBAL globaldef 298744SAli.Bahrami@Sun.COM#else 308744SAli.Bahrami@Sun.COM# define OPENSSL_EXTERN extern 318744SAli.Bahrami@Sun.COM# define OPENSSL_GLOBAL 328744SAli.Bahrami@Sun.COM#endif 338744SAli.Bahrami@Sun.COM 348744SAli.Bahrami@Sun.COM#ifdef __cplusplus 358744SAli.Bahrami@Sun.COM} 368744SAli.Bahrami@Sun.COM#endif 372522Sraf#endif 382522Sraf 3912692SAli.Bahrami@Oracle.COM