From 89d11bc2d26ccc6876ffdae3067af381ec2b50d3 Mon Sep 17 00:00:00 2001 From: Debian Astronomy Maintainers Date: Sat, 14 May 2022 03:24:02 +0800 Subject: [PATCH] off_t Gbp-Pq: Name 03-off_t.diff --- fitsio.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fitsio.h b/fitsio.h index 1d5a583..9c96551 100644 --- a/fitsio.h +++ b/fitsio.h @@ -69,7 +69,7 @@ SERVICES PROVIDED HEREUNDER." # define _MIPS_SZLONG 64 #endif -#if defined(linux) || defined(__APPLE__) || defined(__sgi) +#if defined(__linux__) || defined(__APPLE__) || defined(__sgi) # include /* apparently needed on debian linux systems */ #endif /* to define off_t */ @@ -83,10 +83,10 @@ SERVICES PROVIDED HEREUNDER." /* on whether _LARGEFILE_SOURCE is defined in sys/feature_tests.h */ /* (at least on Solaris platforms using cc) */ -/* Debian systems require: "(defined(linux) && defined(__off_t_defined))" */ +/* Debian systems require: "(defined(__linux__) && defined(__off_t_defined))" */ /* the mingw-w64 compiler requires: "(defined(__MINGW32__) && defined(_OFF_T_DEFINED))" */ #if defined(_OFF_T) \ - || (defined(linux) && defined(__off_t_defined)) \ + || (defined(__linux__) && defined(__off_t_defined)) \ || (defined(__MINGW32__) && defined(_OFF_T_DEFINED)) \ || defined(_MIPS_SZLONG) || defined(__APPLE__) || defined(_AIX) # define OFF_T off_t