C headers lack extern "C" {} wrapping



None of the C headers in ORBit2 (except those generated by the IDL
compiler) have the 'extern "C" {}' wrapping. This means that the
functions declared in those header files aren't accessible from C++
code.

Will anyone protest if I add the following lines to each header listed
in a _HEADERS primary target in the appropriate Makefile.am? That should
get all of the installed headers, which as far as I know are the only
ones which need this.

#ifdef __cplusplus
extern "C"
{
#endif		/* __cplusplus */

	[ ... header contents here ... ]

#ifdef __cplusplus
}
#endif		/* __cplusplus */
-- 
Sam "Eddie" Couter  |  mailto:scouter@bigpond.net.au
Debian Developer    |  mailto:eddie@debian.org
                    |  jabber:sam@jabber.topic.com.au
OpenPGP fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C

PGP signature



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