ons, 06.08.2003 kl. 07.03 skrev Dimitrie O. Paun:
On August 6, 2003 01:14 am, Dan Kegel wrote:
I looked at http://cvs.winehq.com/cvsweb/wine/tools/winegcc.c?rev=1.16 and see you don't have
#define selectany weak
That's right, it doesn't.
Think winegcc should do -Dselectany=weak?
I don't know -- it's easy enough to add, but it's also quite dangerous it seems. It would seem that a gcc patch to teach it to recognize selectany as an attribute is the way to go.
You can try
#define __declspec_selectany __attribute__((weak)) #define __declspec_whatever __attribute__((whatever)) #define __declspec(x) __declspec_##x