diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-05-10 21:35:54 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-05-10 21:37:59 +0900 |
commit | f1699314147bad2cf5550cc582693424fdbc2510 (patch) | |
tree | 71e64f23032cf9ce4e56e50b3a94e6a414ef2f09 /ext/win32ole/win32ole_variable.h | |
parent | dd830fab6982dfbfd0667f025e823b097af42f71 (diff) | |
download | ruby-f1699314147bad2cf5550cc582693424fdbc2510.tar.gz |
win32ole: separate global variable declarations and definitions
https://gcc.gnu.org/gcc-10/changes.html#c
> * GCC now defaults to `-fno-common`. As a result, global
> variable accesses are more efficient on various targets. In
> C, global variables with multiple tentative definitions now
> result in linker errors. With `-fcommon` such definitions are
> silently merged during linking.
Diffstat (limited to 'ext/win32ole/win32ole_variable.h')
-rw-r--r-- | ext/win32ole/win32ole_variable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/win32ole/win32ole_variable.h b/ext/win32ole/win32ole_variable.h index 704dc13508..209613fd44 100644 --- a/ext/win32ole/win32ole_variable.h +++ b/ext/win32ole/win32ole_variable.h @@ -1,7 +1,7 @@ #ifndef WIN32OLE_VARIABLE_H #define WIN32OLE_VARIABLE_H 1 -VALUE cWIN32OLE_VARIABLE; +extern VALUE cWIN32OLE_VARIABLE; VALUE create_win32ole_variable(ITypeInfo *pTypeInfo, UINT index, VALUE name); void Init_win32ole_variable(void); |