aboutsummaryrefslogtreecommitdiff
path: root/zconf.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--zconf.h12
-rw-r--r--zconf.h.cmakein12
-rw-r--r--zconf.h.in12
3 files changed, 33 insertions, 3 deletions
diff --git a/zconf.h b/zconf.h
index 1988920..f5a6c87 100644
--- a/zconf.h
+++ b/zconf.h
@@ -315,7 +315,7 @@
315# endif 315# endif
316#endif 316#endif
317 317
318#ifdef HAVE_VISIBILITY_PRAGMA 318#ifndef NO_VIZ
319# define ZEXTERN __attribute__((visibility ("default"))) extern 319# define ZEXTERN __attribute__((visibility ("default"))) extern
320#endif 320#endif
321 321
@@ -368,6 +368,16 @@ typedef uLong FAR uLongf;
368# include <sys/types.h> /* for off_t */ 368# include <sys/types.h> /* for off_t */
369#endif 369#endif
370 370
371/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
372 * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
373 * though the former does not conform to the LFS document), but considering
374 * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
375 * equivalently requesting no 64-bit operations
376 */
377#if -_LARGEFILE64_SOURCE - -1 == 1
378# undef _LARGEFILE64_SOURCE
379#endif
380
371#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) 381#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
372# include <unistd.h> /* for SEEK_* and off_t */ 382# include <unistd.h> /* for SEEK_* and off_t */
373# ifdef VMS 383# ifdef VMS
diff --git a/zconf.h.cmakein b/zconf.h.cmakein
index cf9cc24..18dd770 100644
--- a/zconf.h.cmakein
+++ b/zconf.h.cmakein
@@ -317,7 +317,7 @@
317# endif 317# endif
318#endif 318#endif
319 319
320#ifdef HAVE_VISIBILITY_PRAGMA 320#ifndef NO_VIZ
321# define ZEXTERN __attribute__((visibility ("default"))) extern 321# define ZEXTERN __attribute__((visibility ("default"))) extern
322#endif 322#endif
323 323
@@ -370,6 +370,16 @@ typedef uLong FAR uLongf;
370# include <sys/types.h> /* for off_t */ 370# include <sys/types.h> /* for off_t */
371#endif 371#endif
372 372
373/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
374 * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
375 * though the former does not conform to the LFS document), but considering
376 * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
377 * equivalently requesting no 64-bit operations
378 */
379#if -_LARGEFILE64_SOURCE - -1 == 1
380# undef _LARGEFILE64_SOURCE
381#endif
382
373#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) 383#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
374# include <unistd.h> /* for SEEK_* and off_t */ 384# include <unistd.h> /* for SEEK_* and off_t */
375# ifdef VMS 385# ifdef VMS
diff --git a/zconf.h.in b/zconf.h.in
index 1988920..f5a6c87 100644
--- a/zconf.h.in
+++ b/zconf.h.in
@@ -315,7 +315,7 @@
315# endif 315# endif
316#endif 316#endif
317 317
318#ifdef HAVE_VISIBILITY_PRAGMA 318#ifndef NO_VIZ
319# define ZEXTERN __attribute__((visibility ("default"))) extern 319# define ZEXTERN __attribute__((visibility ("default"))) extern
320#endif 320#endif
321 321
@@ -368,6 +368,16 @@ typedef uLong FAR uLongf;
368# include <sys/types.h> /* for off_t */ 368# include <sys/types.h> /* for off_t */
369#endif 369#endif
370 370
371/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
372 * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
373 * though the former does not conform to the LFS document), but considering
374 * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
375 * equivalently requesting no 64-bit operations
376 */
377#if -_LARGEFILE64_SOURCE - -1 == 1
378# undef _LARGEFILE64_SOURCE
379#endif
380
371#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE) 381#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
372# include <unistd.h> /* for SEEK_* and off_t */ 382# include <unistd.h> /* for SEEK_* and off_t */
373# ifdef VMS 383# ifdef VMS