On Sun, Dec 21, 2003 at 08:10:47PM -0800, Matt Zimmerman wrote: > On Mon, Dec 22, 2003 at 01:34:17PM +1100, Daniel Stone wrote: > > > #ifdef __cplusplus > > extern "C" { > > #endif > > > > [...] > > > > #ifdef __cplusplus > > } > > #endif > > There seem to be macros in place for this already, in Xfuncproto.h: > > #ifndef _XFUNCPROTOBEGIN > #if defined(__cplusplus) || defined(c_plusplus) /* for C++ V2.0 */ > #define _XFUNCPROTOBEGIN extern "C" { /* do not leave open across includes > */ > #define _XFUNCPROTOEND } > #else > #define _XFUNCPROTOBEGIN > #define _XFUNCPROTOEND > #endif > #endif /* _XFUNCPROTOBEGIN */ > > The other headers wrap their declarations in these macros.
Someone please come up with a proper patch, and this'll get fixed faster. -- G. Branden Robinson | That's the saving grace of humor: Debian GNU/Linux | if you fail, no one is laughing at [EMAIL PROTECTED] | you. http://people.debian.org/~branden/ | -- A. Whitney Brown
signature.asc
Description: Digital signature