diff options
author | Bodo Möller <bodo@openssl.org> | 1999-05-15 13:24:16 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-05-15 13:24:16 +0000 |
commit | 2a4a0a340d507d0c64c842d669c37fbe263f3f60 (patch) | |
tree | 7972e31062bd5b004a003ea52f9d6e590e86ce1a /e_os2.h | |
parent | 64a3b11be666893ffb499015c80495201fd62d72 (diff) | |
download | openssl-new-2a4a0a340d507d0c64c842d669c37fbe263f3f60.tar.gz |
e_os* corrections.
Diffstat (limited to 'e_os2.h')
-rw-r--r-- | e_os2.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/e_os2.h b/e_os2.h new file mode 100644 index 0000000000..6f0c69396f --- /dev/null +++ b/e_os2.h @@ -0,0 +1,40 @@ +/* e_os2.h */ + +#ifndef HEADER_E_OS2_H +#define HEADER_E_OS2_H + +#ifdef __cplusplus +extern "C" { +#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 + declared explicitely with globaldef and globalref. On other OS:es, + these macros are defined with something sensible. */ + +#if defined(VMS) && !defined(__DECC) +# define OPENSSL_EXTERN globalref +# define OPENSSL_GLOBAL globaldef +#else +# define OPENSSL_EXTERN extern +# 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 +#endif + |