diff options
-rwxr-xr-x | configure | 6 | ||||
-rw-r--r-- | lib.c | 2 | ||||
-rw-r--r-- | lib.h | 2 | ||||
-rw-r--r-- | mpi/mpi.c | 2 | ||||
-rw-r--r-- | mpi/mpi.h | 2 | ||||
-rw-r--r-- | socket.c | 6 | ||||
-rw-r--r-- | stream.c | 4 |
7 files changed, 12 insertions, 12 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> @@ -41,7 +41,7 @@ #include <assert.h> #include "config.h" #include "alloca.h" -#ifdef HAVE_GETENVIRONMENTSTRINGS +#if HAVE_GETENVIRONMENTSTRINGS #define NOMINMAX #include <windows.h> #endif @@ -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 @@ -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) { @@ -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); @@ -159,7 +159,7 @@ static val sockaddr_unpack(int family, struct sockaddr_storage *src) } } -#ifdef HAVE_GETADDRINFO +#if HAVE_GETADDRINFO static void addrinfo_in(struct addrinfo *dest, val src) { @@ -1080,7 +1080,7 @@ void sock_load_init(void) flow_info_s = intern(lit("flow-info"), user_package); scope_id_s = intern(lit("scope-id"), user_package); -#ifdef HAVE_GETADDRINFO +#if HAVE_GETADDRINFO reg_fun(intern(lit("getaddrinfo"), user_package), func_n3o(getaddrinfo_wrap, 1)); #endif @@ -1100,7 +1100,7 @@ void sock_load_init(void) #ifdef SOCK_CLOEXEC reg_varl(intern(lit("sock-cloexec"), user_package), num_fast(SOCK_CLOEXEC)); #endif -#ifdef HAVE_GETADDRINFO +#if HAVE_GETADDRINFO reg_varl(intern(lit("ai-passive"), user_package), num_fast(AI_PASSIVE)); reg_varl(intern(lit("ai-canonname"), user_package), num_fast(AI_CANONNAME)); reg_varl(intern(lit("ai-numerichost"), user_package), num_fast(AI_NUMERICHOST)); @@ -1271,7 +1271,7 @@ static val pipe_close(val stream, val throw_on_error) lit("unable to obtain status of command ~s: ~d/~s"), stream, num(errno), string_utf8(strerror(errno)), nao); } else { -#ifdef HAVE_SYS_WAIT +#if HAVE_SYS_WAIT if (throw_on_error) { if (WIFSIGNALED(status)) { int termsig = WTERMSIG(status); @@ -4749,7 +4749,7 @@ void stream_init(void) reg_fun(intern(lit("stream-set-prop"), user_package), func_n3(stream_set_prop)); reg_fun(intern(lit("stream-get-prop"), user_package), func_n2(stream_get_prop)); reg_fun(intern(lit("fileno"), user_package), func_n1(stream_fd)); -#ifdef HAVE_SOCKETS +#if HAVE_SOCKETS reg_fun(intern(lit("sock-family"), user_package), func_n1(sock_family)); reg_fun(intern(lit("sock-type"), user_package), func_n1(sock_type)); reg_fun(intern(lit("sock-peer"), user_package), func_n1(sock_peer)); |