summaryrefslogtreecommitdiff
path: root/e_os2.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2004-07-27 13:58:27 +0000
committerRichard Levitte <levitte@openssl.org>2004-07-27 13:58:27 +0000
commit4591850561d208a13be270f15f488a52a4070d32 (patch)
tree83c53083c935b7549fb1989b531e51811638b7fd /e_os2.h
parenta25aca2943e15968ba879b3414116cd0bd61cfa9 (diff)
downloadopenssl-new-4591850561d208a13be270f15f488a52a4070d32.tar.gz
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.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/e_os2.h b/e_os2.h
index 04d00ec78d..292ea1e2ac 100644
--- a/e_os2.h
+++ b/e_os2.h
@@ -267,9 +267,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