summaryrefslogtreecommitdiff
path: root/zlib.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-11-13 13:35:02 -0800
committerMark Adler <madler@alumni.caltech.edu>2011-11-13 13:35:02 -0800
commit6715208bdb5087ae33a54f7e8150e020aebbf15d (patch)
treebeda2f73a3c6fb956523db0138a70a84c88137b4 /zlib.h
parentd169dd73007cf1eadea79fb2c506b03f178a2bad (diff)
downloadzlib-6715208bdb5087ae33a54f7e8150e020aebbf15d.tar.gz
zlib-6715208bdb5087ae33a54f7e8150e020aebbf15d.tar.bz2
zlib-6715208bdb5087ae33a54f7e8150e020aebbf15d.zip
Change ON macro to Z_ARG to avoid application conflicts.
Using "ON" was a dumb idea, since it is common to have macros with names like ON and OFF. In fact, defining the OF macro back in 1995 was a bad idea, but now we're stuck with it. Attempts to rename OF to something else breaks many applications.
Diffstat (limited to 'zlib.h')
-rw-r--r--zlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zlib.h b/zlib.h
index 6728d89..3121b0a 100644
--- a/zlib.h
+++ b/zlib.h
@@ -1298,7 +1298,7 @@ ZEXTERN int ZEXPORT gzwrite OF((gzFile file,
1298 error. 1298 error.
1299*/ 1299*/
1300 1300
1301ZEXTERN int ZEXPORTVA gzprintf ON((gzFile file, const char *format, ...)); 1301ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...));
1302/* 1302/*
1303 Converts, formats, and writes the arguments to the compressed file under 1303 Converts, formats, and writes the arguments to the compressed file under
1304 control of the format string, as in fprintf. gzprintf returns the number of 1304 control of the format string, as in fprintf. gzprintf returns the number of