OSDN Git Service

* src/header.c (convert_filename): Fixed a bug:
[lha/lha.git] / src / cproto.sh
index ba7a7f2..b8e87f4 100644 (file)
@@ -15,13 +15,11 @@ CPPFLAGS='-DSTDC_HEADERS=1
        -DMULTIBYTE_FILENAME=1
        -Dinterrupt=dummy__
        -DNEED_INCREMENTAL_INDICATOR=1
-       -D__builtin_va_list=int
-       -D__extension__=
 '
 # `interrupt' is the reserved word for cproto.
 
 SOURCES='append.c bitio.c crcio.c dhuf.c extract.c header.c
-       huf.c larc.c lhadd.c lharc.c lhext.c
+       huf.c indicator.c larc.c lhadd.c lharc.c lhext.c
        lhlist.c maketbl.c maketree.c patmatch.c
        shuf.c slide.c util.c
 '
@@ -46,7 +44,7 @@ cat <<END
 END
 
 cproto $CPROTO_FLAGS $CPPFLAGS $SOURCES |
-       grep -v -e '^int main ' | sed -e 's/dummy__/interrupt/'
+       sed -e '/^int main /d' -e 's/dummy__/interrupt/'
 
 cat <<END
 
@@ -63,7 +61,7 @@ char *memset P_((char *s, int c, size_t n));
 #if !HAVE_STRCASECMP
 int strcasecmp P_((const char *p1, const char *p2));
 #endif
-#if !HAVE_BASENAME
+#if defined HAVE_DECL_BASENAME && !HAVE_DECL_BASENAME
 char *basename P_((char *s));
 #endif