mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 00:23:37 +00:00
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:
parent
8204a0b864
commit
44e1e9438c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue