libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] visibility


From: LRN
Subject: Re: [libmicrohttpd] visibility
Date: Sat, 25 Jan 2014 11:57:45 +0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Thunderbird/29.0a1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 25.01.2014 4:39, LRN wrote:
> Recently MHD added visibility attributes to hide some functions.
> 
> This throws lots of warnings on W32, since visibility attributes
> are not supported here.
> 
> I knew for a fact that GTK does have visibility, and doesn't have 
> visibility problems on W32, so i checked how the do this. Turns
> out, the compile with -fvisibility=hidden (which doesn't throw any
> warnings on W32, it's ignored), and mark _visible_ functions with
> "attribute visibility default" AND (on W32) __dllexport. Obviously,
> this is when compiling GTK. For GTK users the macro that puts these
> on functions expands to a simple "extern".
> 
> I'll try to implement this for MHD and see how it goes.
> 

Implemented. Compiles here for me, no warnings. Will test it on my
Debian machine later on.

- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJS4254AAoJEOs4Jb6SI2CweOIIAMGQwFdgg8pcS+0Mlc6rqZ6U
IKE7DrJmAc5BENavN2cbVwgSygmD8jwkv6Hy52BTTekaErgJg07wpItiM2ANUwh7
H32ybbHg13A7VL2egZLunN6G9Ral9kPcjn2IKLkTGdHFmZ6qypUzt3AVnmQIAixZ
pl11nXNSzclksEIswc36UZ8fk8e2tIyZbixN2wtMSujp12PA9a+oKdvLt7dxQ+St
eLoIZXo108yXBU72lT/5ofwOlvB96y0H3ffBRP3ul3moizCaCLWFFPdmpQ+2i6su
eeQrxLvAmOcM2I9xUrZQDcm3uha9o5dJoa17bRCU8YQYJ6KncLY4OKBiLMwIMig=
=JhWQ
-----END PGP SIGNATURE-----



reply via email to

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