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:
parent
dd830fab69
commit
f169931414
18 changed files with 29 additions and 11 deletions
|
|
@ -1,8 +1,8 @@
|
|||
#ifndef WIN32OLE_ERROR_H
|
||||
#define WIN32OLE_ERROR_H 1
|
||||
|
||||
VALUE eWIN32OLERuntimeError;
|
||||
VALUE eWIN32OLEQueryInterfaceError;
|
||||
extern VALUE eWIN32OLERuntimeError;
|
||||
extern VALUE eWIN32OLEQueryInterfaceError;
|
||||
NORETURN(PRINTF_ARGS(void ole_raise(HRESULT hr, VALUE ecs, const char *fmt, ...), 3, 4));
|
||||
void Init_win32ole_error(void);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue