libmicrohttpd
[Top][All Lists]
Advanced

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

[libmicrohttpd] visibility


From: LRN
Subject: [libmicrohttpd] visibility
Date: Sat, 25 Jan 2014 04:39:54 +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

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.

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

iQEcBAEBAgAGBQJS4wfZAAoJEOs4Jb6SI2Cw+UoH/31zmp3MMzvXWrcErwpAceIc
iMXi2v5ke598AQrbFn5+IxPbB18aZs6xS6Y7VXiruLq3AU27oV5PuGjehX7h6Jvl
qg9oQqKESwzV0qFFez27+eWBgjQHFLfs1eRbJXSWR6I9vjEeeoMtqaM8EG8scUhK
ed3w1eRmFwrQepS5m48eASlnrwozxqkCJu5sGLWxZkAORi/oY2LSlFD/CNNeoo27
Y0drO+B5icTUsSzAanEjlpwJdvj9bZ6SjyU80BSg7LaOjm98ztbTH2MEng1zy+yI
ZX8Pr8a7JhyLyNdYuPtC7acITVtHoWcugqpdZb8a4W2hyGl0kE6HLPc10J9yaM0=
=+BE6
-----END PGP SIGNATURE-----



reply via email to

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