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) {
|
int main(void) {
|
||||||
if (sizeof(void *) <= sizeof(int)) puts("int");
|
if (sizeof(void *) <= sizeof(int)) puts("int");
|
||||||
else if (sizeof(void *) <= sizeof(long)) puts("long");
|
else if (sizeof(void *) <= sizeof(long)) puts("long");
|
||||||
else puts("long long");
|
else puts("z_longlong");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
2
zconf.h
2
zconf.h
|
@ -225,6 +225,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef Z_SOLO
|
#ifndef Z_SOLO
|
||||||
|
# define z_longlong long long
|
||||||
# ifdef NO_SIZE_T
|
# ifdef NO_SIZE_T
|
||||||
typedef unsigned NO_SIZE_T z_size_t;
|
typedef unsigned NO_SIZE_T z_size_t;
|
||||||
# else
|
# else
|
||||||
|
@ -237,6 +238,7 @@
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
typedef ssize_t z_ssize_t;
|
typedef ssize_t z_ssize_t;
|
||||||
# endif
|
# endif
|
||||||
|
# undef z_longlong
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Maximum value for memLevel in deflateInit2 */
|
/* Maximum value for memLevel in deflateInit2 */
|
||||||
|
|
|
@ -227,6 +227,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef Z_SOLO
|
#ifndef Z_SOLO
|
||||||
|
# define z_longlong long long
|
||||||
# ifdef NO_SIZE_T
|
# ifdef NO_SIZE_T
|
||||||
typedef unsigned NO_SIZE_T z_size_t;
|
typedef unsigned NO_SIZE_T z_size_t;
|
||||||
# else
|
# else
|
||||||
|
@ -239,6 +240,7 @@
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
typedef ssize_t z_ssize_t;
|
typedef ssize_t z_ssize_t;
|
||||||
# endif
|
# endif
|
||||||
|
# undef z_longlong
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Maximum value for memLevel in deflateInit2 */
|
/* Maximum value for memLevel in deflateInit2 */
|
||||||
|
|
|
@ -225,6 +225,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef Z_SOLO
|
#ifndef Z_SOLO
|
||||||
|
# define z_longlong long long
|
||||||
# ifdef NO_SIZE_T
|
# ifdef NO_SIZE_T
|
||||||
typedef unsigned NO_SIZE_T z_size_t;
|
typedef unsigned NO_SIZE_T z_size_t;
|
||||||
# else
|
# else
|
||||||
|
@ -237,6 +238,7 @@
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
typedef ssize_t z_ssize_t;
|
typedef ssize_t z_ssize_t;
|
||||||
# endif
|
# endif
|
||||||
|
# undef z_longlong
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Maximum value for memLevel in deflateInit2 */
|
/* Maximum value for memLevel in deflateInit2 */
|
||||||
|
|
Loading…
Reference in New Issue