include: Allow multiple definitions on GCC with DECLSPEC_SELECTANY.

Needed to compile Tera Term.

As far as I can tell, GCC has always supported __attribute__((weak)).
This commit is contained in:
Alex Henrie 2023-02-08 22:04:59 -07:00 committed by Alexandre Julliard
parent 8204a0b864
commit 44e1e9438c

View file

@ -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