mirror of https://github.com/madler/zlib
Make z_size_t unsigned long for non-standard C.
Also declare z_size_t when compiling solo.
This commit is contained in:
parent
cca27e95cf
commit
61b91f27f8
10
zconf.h
10
zconf.h
|
@ -229,13 +229,17 @@
|
|||
# define z_const
|
||||
#endif
|
||||
|
||||
#ifndef Z_SOLO
|
||||
#ifdef Z_SOLO
|
||||
typedef unsigned long z_size_t;
|
||||
#else
|
||||
# define z_longlong long long
|
||||
# ifdef NO_SIZE_T
|
||||
# if defined(NO_SIZE_T)
|
||||
typedef unsigned NO_SIZE_T z_size_t;
|
||||
# else
|
||||
# elif defined(STDC)
|
||||
# include <stddef.h>
|
||||
typedef size_t z_size_t;
|
||||
# else
|
||||
typedef unsigned long z_size_t;
|
||||
# endif
|
||||
# undef z_longlong
|
||||
#endif
|
||||
|
|
|
@ -231,13 +231,17 @@
|
|||
# define z_const
|
||||
#endif
|
||||
|
||||
#ifndef Z_SOLO
|
||||
#ifdef Z_SOLO
|
||||
typedef unsigned long z_size_t;
|
||||
#else
|
||||
# define z_longlong long long
|
||||
# ifdef NO_SIZE_T
|
||||
# if defined(NO_SIZE_T)
|
||||
typedef unsigned NO_SIZE_T z_size_t;
|
||||
# else
|
||||
# elif defined(STDC)
|
||||
# include <stddef.h>
|
||||
typedef size_t z_size_t;
|
||||
# else
|
||||
typedef unsigned long z_size_t;
|
||||
# endif
|
||||
# undef z_longlong
|
||||
#endif
|
||||
|
|
10
zconf.h.in
10
zconf.h.in
|
@ -229,13 +229,17 @@
|
|||
# define z_const
|
||||
#endif
|
||||
|
||||
#ifndef Z_SOLO
|
||||
#ifdef Z_SOLO
|
||||
typedef unsigned long z_size_t;
|
||||
#else
|
||||
# define z_longlong long long
|
||||
# ifdef NO_SIZE_T
|
||||
# if defined(NO_SIZE_T)
|
||||
typedef unsigned NO_SIZE_T z_size_t;
|
||||
# else
|
||||
# elif defined(STDC)
|
||||
# include <stddef.h>
|
||||
typedef size_t z_size_t;
|
||||
# else
|
||||
typedef unsigned long z_size_t;
|
||||
# endif
|
||||
# undef z_longlong
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue