summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-09-12 20:35:46 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-09-12 20:35:46 -0700
commit71d01ae185d95888e3908cce5dba99890e970931 (patch)
tree2620a90b0e1e20ccc3b55dba8b52d0e2173c6d41 /lib.h
parent4edfb0c2b6a7b6e915cb6ce5083284e6502e5086 (diff)
downloadtxr-71d01ae185d95888e3908cce5dba99890e970931.tar.gz
txr-71d01ae185d95888e3908cce5dba99890e970931.tar.bz2
txr-71d01ae185d95888e3908cce5dba99890e970931.zip
All HAVE_* macros should be tested with #if, not #ifdef.
* configure: In several config tests, test HAVE_SUPERLONG_T, HAVE_LONGLONG_T and HAVE_SYS_WAIT with #if. * lib.c: Test HAVE_GETENVIRONMENTSTRINGS with #if. * lib.h: Test HAVE_DOUBLE_INTPTR_T with #if. * mpi/mpi.c: Likewise. * mpi/mpi.h: Likewise. * socket.c: Test HAVE_GETADDRINFO with #if in three places. * stream.c: Test HAVE_SYS_WAIT and HAVE_SOCKETS with #if.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.h b/lib.h
index d960e5f4..9368cb08 100644
--- a/lib.h
+++ b/lib.h
@@ -30,7 +30,7 @@
typedef int_ptr_t cnum;
typedef uint_ptr_t ucnum;
-#ifdef HAVE_DOUBLE_INTPTR_T
+#if HAVE_DOUBLE_INTPTR_T
typedef double_intptr_t dbl_cnum;
typedef double_uintptr_t dbl_ucnum;
#endif