summaryrefslogtreecommitdiffstats
path: root/e_os2.h
blob: 6f0c69396f8ea728495bb8e4d8cbf5cb97765ef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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