mirror of https://github.com/madler/zlib
Fix compile option for when z_size_t needs to be a long long.
This commit is contained in:
parent
ca50ebd4df
commit
3f8c768745
|
@ -491,7 +491,7 @@ EOF
|
|||
int main(void) {
|
||||
if (sizeof(void *) <= sizeof(int)) puts("int");
|
||||
else if (sizeof(void *) <= sizeof(long)) puts("long");
|
||||
else puts("long long");
|
||||
else puts("z_longlong");
|
||||
return 0;
|
||||
}
|
||||
EOF
|
||||
|
|
2
zconf.h
2
zconf.h
|
@ -225,6 +225,7 @@
|
|||
#endif
|
||||
|
||||
#ifndef Z_SOLO
|
||||
# define z_longlong long long
|
||||
# ifdef NO_SIZE_T
|
||||
typedef unsigned NO_SIZE_T z_size_t;
|
||||
# else
|
||||
|
@ -237,6 +238,7 @@
|
|||
# include <sys/types.h>
|
||||
typedef ssize_t z_ssize_t;
|
||||
# endif
|
||||
# undef z_longlong
|
||||
#endif
|
||||
|
||||
/* Maximum value for memLevel in deflateInit2 */
|
||||
|
|
|
@ -227,6 +227,7 @@
|
|||
#endif
|
||||
|
||||
#ifndef Z_SOLO
|
||||
# define z_longlong long long
|
||||
# ifdef NO_SIZE_T
|
||||
typedef unsigned NO_SIZE_T z_size_t;
|
||||
# else
|
||||
|
@ -239,6 +240,7 @@
|
|||
# include <sys/types.h>
|
||||
typedef ssize_t z_ssize_t;
|
||||
# endif
|
||||
# undef z_longlong
|
||||
#endif
|
||||
|
||||
/* Maximum value for memLevel in deflateInit2 */
|
||||
|
|
|
@ -225,6 +225,7 @@
|
|||
#endif
|
||||
|
||||
#ifndef Z_SOLO
|
||||
# define z_longlong long long
|
||||
# ifdef NO_SIZE_T
|
||||
typedef unsigned NO_SIZE_T z_size_t;
|
||||
# else
|
||||
|
@ -237,6 +238,7 @@
|
|||
# include <sys/types.h>
|
||||
typedef ssize_t z_ssize_t;
|
||||
# endif
|
||||
# undef z_longlong
|
||||
#endif
|
||||
|
||||
/* Maximum value for memLevel in deflateInit2 */
|
||||
|
|
Loading…
Reference in New Issue