gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: weak under mingw


From: Luboš Doležel
Subject: Re: weak under mingw
Date: Mon, 21 Sep 2015 13:57:23 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0

Dne 18.9.2015 v 19:02 Riccardo Mottola napsal(a):
Hi,

I was getting a lot of "weak" unsupported while compiling on windows. At first, I thought it was a compiler thing (still using gcc 3.something) but it is not, it should be supported already. However, I found out that it is supported only with ELF targets and to my knowledge mingw has COFF. Thus it won't work anyway.

I propose this patch, may I commit it?
It makes at least go away the nasty warnings I was getting for any file. I suppose it wouldn't have worked anyway.

Index: Headers/GNUstepBase/GSBlocks.h
===================================================================
--- Headers/GNUstepBase/GSBlocks.h      (revisione 38932)
+++ Headers/GNUstepBase/GSBlocks.h      (copia locale)
@@ -117,9 +117,14 @@
  * by an application.
  */

+/* weak attributed supported only with ELF, MINGW is COFF */
+#ifndef __MINGW32__
+
 void *_Block_copy(void *) __attribute__((weak));
 void _Block_release(void *) __attribute__((weak));

+#endif /* __MINGW32__ */
+
 #ifdef __cplusplus
 }
 #endif

Riccardo

Hi,

as long as things still compile for you, it should be OK.

Luboš





reply via email to

[Prev in Thread] Current Thread [Next in Thread]