Commit ad149977 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Avoid referencing <sys/cdefs.h> and __{BEGIN,END}_DECLS.

Based on Theo Schlossnagle's Solaris portability patch.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1783 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 336c08d1
......@@ -71,15 +71,17 @@
*/
#define UNVIS_END 1 /* no more characters */
#include <sys/cdefs.h>
__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_ */
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment