summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorThomas Nilefalk <thomas@nilefalk.se>2020-03-11 13:23:23 +0100
committerGitHub <noreply@github.com>2020-03-11 05:23:23 -0700
commitdfdfef8c5ff19f28740a6191835027123d51f08e (patch)
treead992681193585724106275aca0380ac0d3cda59 /utils
parent0055facfb5b5289ce8ef2ef12b18e34a223f9d20 (diff)
downloadpycparser-dfdfef8c5ff19f28740a6191835027123d51f08e.tar.gz
Add some "types" to zlib.h (#368)
Diffstat (limited to 'utils')
-rw-r--r--utils/fake_libc_include/zlib.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/utils/fake_libc_include/zlib.h b/utils/fake_libc_include/zlib.h
index f952c1d..5705411 100644
--- a/utils/fake_libc_include/zlib.h
+++ b/utils/fake_libc_include/zlib.h
@@ -1,2 +1,33 @@
+#ifndef ZLIB_H
+#define ZLIB_H
+
#include "_fake_defines.h"
#include "_fake_typedefs.h"
+
+typedef int uInt;
+typedef int uLong;
+#if !defined(__MACTYPES__)
+typedef int Byte;
+#endif
+
+typedef int Bytef;
+typedef int charf;
+typedef int intf;
+typedef int uIntf;
+typedef int uLongf;
+
+typedef int voidpc;
+typedef int voidpf;
+typedef int voidp;
+
+#if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC)
+#define Z_U4 int
+#endif
+
+typedef int z_crc_t;
+typedef int z_size_t;
+
+typedef int alloc_func;
+typedef int free_func;
+
+#endif