From: des Date: Mon, 30 Jul 2007 08:03:42 +0000 (+0000) Subject: Avoid referencing and __{BEGIN,END}_DECLS. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=517d0d05ff5ee5e5306fbd3da76a5bbac956c18b;p=varnish Avoid referencing and __{BEGIN,END}_DECLS. Based on Theo Schlossnagle's Solaris portability patch. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1783 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/include/compat/vis.h b/varnish-cache/include/compat/vis.h index 7cf4c085..eb024891 100644 --- a/varnish-cache/include/compat/vis.h +++ b/varnish-cache/include/compat/vis.h @@ -71,15 +71,17 @@ */ #define UNVIS_END 1 /* no more characters */ -#include - -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif char *vis(char *, int, int, int); int strvis(char *, const char *, int); int strvisx(char *, const char *, size_t, int); int strunvis(char *, const char *); int strunvisx(char *, const char *, int); int unvis(char *, int, int *, int); -__END_DECLS +#ifdef __cplusplus +}; +#endif #endif /* !_VIS_H_ */ diff --git a/varnish-cache/include/vsb.h b/varnish-cache/include/vsb.h index aee38780..f95a1e39 100644 --- a/varnish-cache/include/vsb.h +++ b/varnish-cache/include/vsb.h @@ -50,7 +50,9 @@ struct vsb { int s_flags; /* flags */ }; -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif /* * API functions */ @@ -73,6 +75,8 @@ char *vsb_data(struct vsb *); int vsb_len(struct vsb *); int vsb_done(struct vsb *); void vsb_delete(struct vsb *); -__END_DECLS +#ifdef __cplusplus +}; +#endif #endif