diff options
author | joerg <joerg@pkgsrc.org> | 2008-02-07 16:34:52 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-02-07 16:34:52 +0000 |
commit | ed6c2007e4473c4a4adc198c71580a67d3e8a4c5 (patch) | |
tree | 9f0e43df0bf55c5bd647fa36f98bc3dcde0bcef5 /net | |
parent | 208c8a0cb6ddd6fb063d13aa3717d2eeeeb8e2cd (diff) | |
download | pkgsrc-ed6c2007e4473c4a4adc198c71580a67d3e8a4c5.tar.gz |
Don't use __BEGIN_DECL/__END_DECL, just inline them. Ensure that
the external variables are covered as well. Directly include stdio.h.
Diffstat (limited to 'net')
-rw-r--r-- | net/libfetch/files/fetch.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/net/libfetch/files/fetch.h b/net/libfetch/files/fetch.h index f993abfa8ee..81d6824a2b0 100644 --- a/net/libfetch/files/fetch.h +++ b/net/libfetch/files/fetch.h @@ -1,4 +1,4 @@ -/* $NetBSD: fetch.h,v 1.1.1.1 2008/02/07 01:48:22 joerg Exp $ */ +/* $NetBSD: fetch.h,v 1.2 2008/02/07 16:34:52 joerg Exp $ */ /*- * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav * All rights reserved. @@ -33,6 +33,7 @@ #define _FETCH_H_INCLUDED #include <limits.h> +#include <stdio.h> #define _LIBFETCH_VER "libfetch/2.0" @@ -90,7 +91,9 @@ struct url_ent { #define FETCH_URL 18 #define FETCH_VERBOSE 19 -__BEGIN_DECLS +#if defined(__cplusplus) +extern "C" { +#endif /* FILE-specific functions */ FILE *fetchXGetFile(struct url *, struct url_stat *, const char *); @@ -131,8 +134,6 @@ struct url *fetchMakeURL(const char *, const char *, int, struct url *fetchParseURL(const char *); void fetchFreeURL(struct url *); -__END_DECLS - /* Authentication */ typedef int (*auth_t)(struct url *); extern auth_t fetchAuthMethod; @@ -151,4 +152,8 @@ extern int fetchRestartCalls; /* Extra verbosity */ extern int fetchDebug; +#if defined(__cplusplus) +} +#endif + #endif |