diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-09-12 20:35:46 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-09-12 20:35:46 -0700 |
commit | 71d01ae185d95888e3908cce5dba99890e970931 (patch) | |
tree | 2620a90b0e1e20ccc3b55dba8b52d0e2173c6d41 /configure | |
parent | 4edfb0c2b6a7b6e915cb6ce5083284e6502e5086 (diff) | |
download | txr-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 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1199,10 +1199,10 @@ if [ -z "$intptr" ] ; then #include <limits.h> #include "config.h" char SIZEOF_BYTE[CHAR_BIT]; -#ifdef HAVE_SUPERLONG_T +#if HAVE_SUPERLONG_T char SIZEOF_SUPERLONG_T[sizeof (superlong_t)]; #endif -#ifdef HAVE_LONGLONG_T +#if HAVE_LONGLONG_T char SIZEOF_LONGLONG_T[sizeof (longlong_t)]; #endif char SIZEOF_PTR[sizeof (char *)]; @@ -1668,7 +1668,7 @@ printf "Checking for POSIX fork/pipe/exec/waitpid ... " cat > conftest.c <<! #include "config.h" -#ifdef HAVE_SYS_WAIT +#if HAVE_SYS_WAIT #include <sys/wait.h> #endif #include <sys/types.h> |