summaryrefslogtreecommitdiffstats
path: root/mpi
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 /mpi
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 'mpi')
-rw-r--r--mpi/mpi.c2
-rw-r--r--mpi/mpi.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/mpi/mpi.c b/mpi/mpi.c
index 52525762..0e01fc26 100644
--- a/mpi/mpi.c
+++ b/mpi/mpi.c
@@ -493,7 +493,7 @@ int mp_in_uintptr_range(mp_int *mp)
return mp_in_range(mp, UINT_PTR_MAX, 1);
}
-#ifdef HAVE_DOUBLE_INTPTR_T
+#if HAVE_DOUBLE_INTPTR_T
mp_err mp_set_double_intptr(mp_int *mp, double_intptr_t z)
{
diff --git a/mpi/mpi.h b/mpi/mpi.h
index cce283b0..2a73f233 100644
--- a/mpi/mpi.h
+++ b/mpi/mpi.h
@@ -88,7 +88,7 @@ mp_err mp_get_intptr(mp_int *mp, int_ptr_t *z);
int mp_in_range(mp_int *mp, uint_ptr_t lim, int unsig);
int mp_in_intptr_range(mp_int *mp);
int mp_in_uintptr_range(mp_int *mp);
-#ifdef HAVE_DOUBLE_INTPTR_T
+#if HAVE_DOUBLE_INTPTR_T
mp_err mp_set_double_intptr(mp_int *mp, double_intptr_t z);
mp_err mp_set_double_uintptr(mp_int *mp, double_uintptr_t z);
mp_err mp_get_double_intptr(mp_int *mp, double_intptr_t *z);