From 979c810c382abdd3cdfdc5756907e89655aa4757 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 4 Oct 2024 11:38:40 +0100 Subject: [PATCH] K&R calma: missing HAVE_ZLIB ifdef around function using type gzFile K&R obsolete syntax removal for C23 compatibility series --- calma/calma.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/calma/calma.h b/calma/calma.h index 407d4ff8..b331f141 100644 --- a/calma/calma.h +++ b/calma/calma.h @@ -77,7 +77,9 @@ extern void calmaElementText(void); extern bool calmaIsUseNameDefault(char *defName, char *useName); extern bool calmaParseStructure(char *filename); extern int calmaProcessDef(CellDef *def, FILE *outf, bool do_library); +#ifdef HAVE_ZLIB extern int calmaProcessDefZ(CellDef *def, gzFile outf, bool do_library); +#endif extern bool calmaReadI2Record(int type, int *pvalue); extern bool calmaReadI4Record(int type, int *pvalue); extern void calmaReadPoint(Point *p, int iscale);