9 Feb
2023
9 Feb
'23
5:41 a.m.
From: Alex Henrie <alexhenrie24(a)gmail.com> Needed to compile Tera Term. As far as I can tell, GCC has always supported __attribute__((weak)). --- include/winnt.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/winnt.h b/include/winnt.h index 04c2e96d1e1..9ead77231fa 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -118,6 +118,8 @@ extern "C" { #define DECLSPEC_SELECTANY __declspec(selectany) #elif defined(__MINGW32__) #define DECLSPEC_SELECTANY __attribute__((selectany)) +#elif defined(__GNUC__) +#define DECLSPEC_SELECTANY __attribute__((weak)) #else #define DECLSPEC_SELECTANY #endif -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/2150