1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.
This commit is contained in:
Nobuyoshi Nakada 2020-05-10 21:35:54 +09:00
parent dd830fab69
commit f169931414
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
18 changed files with 29 additions and 11 deletions

View file

@ -112,8 +112,8 @@ struct oledata {
IDispatch *pDispatch;
};
VALUE cWIN32OLE;
LCID cWIN32OLE_lcid;
extern VALUE cWIN32OLE;
extern LCID cWIN32OLE_lcid;
struct oledata *oledata_get_struct(VALUE obj);
LPWSTR ole_vstr2wc(VALUE vstr);