X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=e_os2.h;h=5a25ac7cf6e2ab775ec10cbc1ea93b237a5d264c;hp=6f0c69396f8ea728495bb8e4d8cbf5cb97765ef1;hb=73e92de57759ea1fadbc7a9d08e02b99a752d688;hpb=2a4a0a340d507d0c64c842d669c37fbe263f3f60 diff --git a/e_os2.h b/e_os2.h index 6f0c69396f..5a25ac7cf6 100644 --- a/e_os2.h +++ b/e_os2.h @@ -3,10 +3,20 @@ #ifndef HEADER_E_OS2_H #define HEADER_E_OS2_H +#include /* OPENSSL_UNISTD */ + #ifdef __cplusplus extern "C" { #endif +#ifdef MSDOS +# define OPENSSL_UNISTD_IO +# define OPENSSL_DECLARE_EXIT extern void exit(int); +#else +# define OPENSSL_UNISTD_IO OPENSSL_UNISTD +# define OPENSSL_DECLARE_EXIT /* declared in unistd.h */ +#endif + /* Definitions of OPENSSL_GLOBAL and OPENSSL_EXTERN, to define and declare certain global symbols that, with some compilers under VMS, have to be defined and @@ -21,18 +31,6 @@ extern "C" { # define OPENSSL_GLOBAL #endif -/* The above definitions should be used throughout the library, - * but as long as EXTERN and GLOBAL occur there, we keep the following - * definitions, too: */ -#if defined(VMS) && !defined(__DECC) -# define EXTERN globalref -# define GLOBAL globaldef -#else -# define EXTERN extern -# define GLOBAL -#endif - - #ifdef __cplusplus } #endif