summaryrefslogtreecommitdiff
path: root/ext/win32ole/win32ole_error.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-10 21:35:54 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-10 21:37:59 +0900
commitf1699314147bad2cf5550cc582693424fdbc2510 (patch)
tree71e64f23032cf9ce4e56e50b3a94e6a414ef2f09 /ext/win32ole/win32ole_error.h
parentdd830fab6982dfbfd0667f025e823b097af42f71 (diff)
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_error.h')
-rw-r--r--ext/win32ole/win32ole_error.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/win32ole/win32ole_error.h b/ext/win32ole/win32ole_error.h
index 296eb101ad..a2f329856f 100644
--- a/ext/win32ole/win32ole_error.h
+++ b/ext/win32ole/win32ole_error.h
@@ -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);