path: root/archive.h
diff options
authorShawn O. Pearce <>2006-11-05 05:37:23 (GMT)
committerJunio C Hamano <>2006-11-05 07:48:36 (GMT)
commit6c2f207b2316149ee8dfaf026e4a869ff9ab42f7 (patch)
tree2e71cda1616f53697b3b8bd85c63f46566aa53ab /archive.h
parentaf8ffbed0fc016e066765706738c45c65493f392 (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'archive.h')
1 files changed, 0 insertions, 2 deletions
diff --git a/archive.h b/archive.h
index 16dcdb8..6838dc7 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);