Commit c8adb567 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@1783 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 8d5cae5d
...@@ -71,15 +71,17 @@ ...@@ -71,15 +71,17 @@
*/ */
#define UNVIS_END 1 /* no more characters */ #define UNVIS_END 1 /* no more characters */
#include <sys/cdefs.h> #ifdef __cplusplus
extern "C" {
__BEGIN_DECLS #endif
char *vis(char *, int, int, int); char *vis(char *, int, int, int);
int strvis(char *, const char *, int); int strvis(char *, const char *, int);
int strvisx(char *, const char *, size_t, int); int strvisx(char *, const char *, size_t, int);
int strunvis(char *, const char *); int strunvis(char *, const char *);
int strunvisx(char *, const char *, int); int strunvisx(char *, const char *, int);
int unvis(char *, int, int *, int); int unvis(char *, int, int *, int);
__END_DECLS #ifdef __cplusplus
};
#endif
#endif /* !_VIS_H_ */ #endif /* !_VIS_H_ */
...@@ -50,7 +50,9 @@ struct vsb { ...@@ -50,7 +50,9 @@ struct vsb {
int s_flags; /* flags */ int s_flags; /* flags */
}; };
__BEGIN_DECLS #ifdef __cplusplus
extern "C" {
#endif
/* /*
* API functions * API functions
*/ */
...@@ -73,6 +75,8 @@ char *vsb_data(struct vsb *); ...@@ -73,6 +75,8 @@ char *vsb_data(struct vsb *);
int vsb_len(struct vsb *); int vsb_len(struct vsb *);
int vsb_done(struct vsb *); int vsb_done(struct vsb *);
void vsb_delete(struct vsb *); void vsb_delete(struct vsb *);
__END_DECLS #ifdef __cplusplus
};
#endif
#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