summaryrefslogtreecommitdiff
path: root/neozip/zutil_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'neozip/zutil_p.h')
-rw-r--r--neozip/zutil_p.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/neozip/zutil_p.h b/neozip/zutil_p.h
new file mode 100644
index 0000000000..9615956350
--- /dev/null
+++ b/neozip/zutil_p.h
@@ -0,0 +1,20 @@
+/* zutil_p.h -- Private inline functions used internally in zlib-ng
+ * For conditions of distribution and use, see copyright notice in zlib.h
+ */
+
+#ifndef ZUTIL_P_H
+#define ZUTIL_P_H
+
+#include <stdlib.h>
+
+// Zlib-ng's default alloc/free implementation, used unless
+// application supplies its own alloc/free functions.
+static inline void *zng_alloc(size_t size) {
+ return malloc(size);
+}
+
+static inline void zng_free(void *ptr) {
+ free(ptr);
+}
+
+#endif