From: Yang Tse Date: Fri, 15 May 2009 01:08:17 +0000 (+0000) Subject: Fix preprocessor conditional expression X-Git-Tag: curl-7_19_5~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ae470eedfeec4abd47b1216bfbec00f1c56e9e4;p=curl Fix preprocessor conditional expression --- diff --git a/acinclude.m4 b/acinclude.m4 index 436adb605..790248b08 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -120,7 +120,7 @@ AC_DEFUN([CURL_CHECK_LIB_XNET], [ AC_LANG_SOURCE([[ int main (void) { -#if defined(__hpux) && defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE >= 600) +#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600) return 0; #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED) return 0; diff --git a/ares/acinclude.m4 b/ares/acinclude.m4 index 6b02776f6..e9690a713 100644 --- a/ares/acinclude.m4 +++ b/ares/acinclude.m4 @@ -98,7 +98,7 @@ AC_DEFUN([CARES_CHECK_LIB_XNET], [ AC_LANG_SOURCE([[ int main (void) { -#if defined(__hpux) && defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE >= 600) +#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600) return 0; #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED) return 0;