aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/uzlib/src/tinf_compat.h
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-01-29 22:31:50 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-01-29 22:31:50 +0100
commit417b4381dda4b88a1e382f821c8964cf8954307e (patch)
tree020b770318331a6016d61f838ee382445387982d /test/monniaux/uzlib/src/tinf_compat.h
parent15aafbb6ff578e10bfc9348c0d04aeaf83279705 (diff)
downloadcompcert-kvx-417b4381dda4b88a1e382f821c8964cf8954307e.tar.gz
compcert-kvx-417b4381dda4b88a1e382f821c8964cf8954307e.zip
https://github.com/pfalcon/uzlib
Diffstat (limited to 'test/monniaux/uzlib/src/tinf_compat.h')
-rw-r--r--test/monniaux/uzlib/src/tinf_compat.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/monniaux/uzlib/src/tinf_compat.h b/test/monniaux/uzlib/src/tinf_compat.h
new file mode 100644
index 00000000..f763804b
--- /dev/null
+++ b/test/monniaux/uzlib/src/tinf_compat.h
@@ -0,0 +1,9 @@
+/* This header contains compatibility defines for the original tinf API
+ and uzlib 2.x and below API. These defines are deprecated and going
+ to be removed in the future, so applications should migrate to new
+ uzlib API. */
+#define TINF_DATA struct uzlib_uncomp
+
+#define destSize dest_size
+#define destStart dest_start
+#define readSource source_read_cb