diff options
author | Richard Levitte <levitte@openssl.org> | 2004-07-27 13:58:25 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-07-27 13:58:25 +0000 |
commit | e81ef01a0a01aad1f0bad9b07b2da928029491cd (patch) | |
tree | 308f68d5e6626a3ce437904c194e3a6f134f8144 /e_os2.h | |
parent | d2033156c58cbcf0fab846c73dc36dd5c1902d5e (diff) |
The compiler may complain about what looks like a double definition of a
static variable
Diffstat (limited to 'e_os2.h')
-rw-r--r-- | e_os2.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -258,9 +258,10 @@ extern "C" { #define foobar OPENSSL_GLOBAL_REF(foobar) */ #ifdef OPENSSL_EXPORT_VAR_AS_FUNCTION -# define OPENSSL_IMPLEMENT_GLOBAL(type,name) static type _hide_##name; \ - type *_shadow_##name(void) { return &_hide_##name; } \ - static type _hide_##name +# define OPENSSL_IMPLEMENT_GLOBAL(type,name) \ + extern static type _hide_##name; \ + type *_shadow_##name(void) { return &_hide_##name; } \ + static type _hide_##name # define OPENSSL_DECLARE_GLOBAL(type,name) type *_shadow_##name(void) # define OPENSSL_GLOBAL_REF(name) (*(_shadow_##name())) #else |