<sys/cdefs.h>: For C++, unhide our interfaces via __{BEGIN,END}_DECLS.
authorSascha Wildner <saw@online.de>
Sun, 11 Mar 2012 12:50:29 +0000 (13:50 +0100)
committerSascha Wildner <saw@online.de>
Sun, 11 Mar 2012 13:26:53 +0000 (14:26 +0100)
commita1671b4d6c66bceb629394590c46c15be034d14e
tree31b9e7da599832383968dd68fd4f29075f0050b3
parent4687ecd9561d76f3d02ccb4f7adeecd5e3afdd8f
<sys/cdefs.h>: For C++, unhide our interfaces via __{BEGIN,END}_DECLS.

This follows up on a previous (pthread specific) commit by alexh
(e7322b09faff75b1298e9bfe444633425d173536) that used a per-proto
macro. Revert this commit, too. In principle, we do it like NetBSD
now.

See http://gcc.gnu.org/wiki/Visibility in the GCC wiki for details
on the issue.

This solution was suggested by Martin Husemann in a thread about
xulrunner building issues:

http://mail-index.netbsd.org/tech-pkg/2012/03/11/msg008680.html

Reported-and-tested-by: marino and others
include/pthread.h
include/pthread_np.h
sys/sys/cdefs.h