aboutsummaryrefslogtreecommitdiff
path: root/archive.h
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2006-11-05 00:37:23 -0500
committerJunio C Hamano <junkio@cox.net>2006-11-04 23:48:36 -0800
commit6c2f207b2316149ee8dfaf026e4a869ff9ab42f7 (patch)
tree2e71cda1616f53697b3b8bd85c63f46566aa53ab /archive.h
parentaf8ffbed0fc016e066765706738c45c65493f392 (diff)
downloadgit-6c2f207b2316149ee8dfaf026e4a869ff9ab42f7.tar.gz
git-6c2f207b2316149ee8dfaf026e4a869ff9ab42f7.tar.xz
Remove unsupported C99 style struct initializers in git-archive.v1.4.3.4
At least one older version of the Solaris C compiler doesn't support the newer C99 style struct initializers. To allow Git to compile on those systems use an archive description struct which is easier to initialize without the C99 struct initializer syntax. Also since the archives array is not used by anyone other than archive.c we can make it static. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'archive.h')
-rw-r--r--archive.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/archive.h b/archive.h
index 16dcdb875..6838dc788 100644
--- a/archive.h
+++ b/archive.h
@@ -25,8 +25,6 @@ struct archiver {
parse_extra_args_fn_t parse_extra;
};
-extern struct archiver archivers[];
-
extern int parse_archive_args(int argc,
const char **argv,
struct archiver *ar);