diff options
author | Mika Lindqvist <postmaster@raasu.org> | 2018-03-13 11:26:19 +0200 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2018-03-22 10:18:27 +0100 |
commit | df1fd1567f0c0c807393bf7dd8f3dd3b1ba24c09 (patch) | |
tree | f4994aba6aade3da1498330500a64a63f95fe390 /zbuild.h | |
parent | ec6adfbfb0e482707b194de916f9325e64d2137d (diff) |
Move private defines from zconf.h and zconf-ng.h to zbuild.h
* move definition of z_size_t to zbuild.h
Diffstat (limited to 'zbuild.h')
-rw-r--r-- | zbuild.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/zbuild.h b/zbuild.h new file mode 100644 index 0000000..e2e6fc3 --- /dev/null +++ b/zbuild.h @@ -0,0 +1,24 @@ +#ifndef _ZBUILD_H +#define _ZBUILD_H + +/* This has to be first include that defines any types */ +#if defined(_MSC_VER) +# include <windows.h> + typedef SSIZE_T ssize_t; +#endif + +#if defined(ZLIB_COMPAT) +# define PREFIX(x) x +# define PREFIX2(x) ZLIB_ ## x +# define PREFIX3(x) z_ ## x +# define zVersion zlibVersion +# define z_size_t unsigned long +#else +# define PREFIX(x) zng_ ## x +# define PREFIX2(x) ZLIBNG_ ## x +# define PREFIX3(x) zng_ ## x +# define zVersion zlibng_version +# define z_size_t size_t +#endif + +#endif |