[libdispatch-dev] Solaris portability, dispatch.h - PATCH [4/6]
Paolo Bonzini
bonzini at gnu.org
Sat Nov 7 07:55:00 PST 2009
On 11/06/2009 11:29 PM, Robert Watson wrote:
>
> +
> +#ifndef __BEGIN_DECLS
> +# if defined(__cplusplus)
> +# define __BEGIN_DECLS extern "C" {
> +# define __END_DECLS };
> +# else /* __BEGIN_DECLS */
> +# define __BEGIN_DECLS
> +# define __END_DECLS
> +# endif /* __BEGIN_DECLS */
> +#endif /* __BEGIN_DECLS */
Just remove cdefs.h completely and do
s/__BEGIN_DECLS/__DISPATCH_BEGIN_DECLS/ (similarly for END)?
Paolo
More information about the libdispatch-dev
mailing list