Commit 44e1e943 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

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)).
parent 8204a0b8
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment