~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to e_os2.h

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Martin
  • Date: 2004-12-16 18:41:29 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20041216184129-z7xjkul57mh1jiha
Tags: upstream-0.9.7e
ImportĀ upstreamĀ versionĀ 0.9.7e

Show diffs side-by-side

added added

removed removed

Lines of Context:
189
189
# endif
190
190
#endif
191
191
 
 
192
/* --------------------------------- VOS ----------------------------------- */
 
193
#ifdef OPENSSL_SYSNAME_VOS
 
194
# define OPENSSL_SYS_VOS
 
195
#endif
 
196
 
192
197
/* ------------------------------- VxWorks --------------------------------- */
193
198
#ifdef OPENSSL_SYSNAME_VXWORKS
194
199
# define OPENSSL_SYS_VXWORKS
243
248
#define OPENSSL_EXTERN OPENSSL_IMPORT
244
249
 
245
250
/* Macros to allow global variables to be reached through function calls when
246
 
   required (if a shared library version requvres it, for example.
 
251
   required (if a shared library version requires it, for example.
247
252
   The way it's done allows definitions like this:
248
253
 
249
254
        // in foobar.c
253
258
        #define foobar OPENSSL_GLOBAL_REF(foobar)
254
259
*/
255
260
#ifdef OPENSSL_EXPORT_VAR_AS_FUNCTION
256
 
# define OPENSSL_IMPLEMENT_GLOBAL(type,name) static type _hide_##name; \
257
 
        type *_shadow_##name(void) { return &_hide_##name; } \
258
 
        static type _hide_##name
 
261
# define OPENSSL_IMPLEMENT_GLOBAL(type,name)                         \
 
262
        extern type _hide_##name;                                    \
 
263
        type *_shadow_##name(void) { return &_hide_##name; }         \
 
264
        static type _hide_##name
259
265
# define OPENSSL_DECLARE_GLOBAL(type,name) type *_shadow_##name(void)
260
266
# define OPENSSL_GLOBAL_REF(name) (*(_shadow_##name()))
261
267
#else