]> granicus.if.org Git - curl/commitdiff
Some preprocessors have problems if the # character isn't at position 1.
authorYang Tse <yangsita@gmail.com>
Wed, 14 Dec 2005 21:09:30 +0000 (21:09 +0000)
committerYang Tse <yangsita@gmail.com>
Wed, 14 Dec 2005 21:09:30 +0000 (21:09 +0000)
acinclude.m4
configure.ac

index 72c5372d913aec033535374a5870bc7bfa08edf6..c07072ebb477bd914cc9473cbcfc1fb839a2cd98 100644 (file)
@@ -704,15 +704,15 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
             AC_COMPILE_IFELSE([
               AC_LANG_PROGRAM([
 
-                #ifdef HAVE_SYS_TYPES_H
-                #include <sys/types.h>
-                #endif
-                #ifdef HAVE_SYS_SOCKET_H
-                #include <sys/socket.h>
-                #endif
-                #ifdef HAVE_NETDB_H
-                #include <netdb.h>
-                #endif
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#ifdef HAVE_NETDB_H
+#include <netdb.h>
+#endif
 
                 extern int getnameinfo(const struct sockaddr *,
                                        $gni_arg2,
@@ -725,11 +725,11 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
               ],[
 
                 int res;
-                struct sockaddr *sa=NULL;
+                struct sockaddr *sa=0;
                 $gni_arg2 salen=0;
-                char *host=NULL;
+                char *host=0;
                 $gni_arg46 hostlen=0;
-                char *serv=NULL;
+                char *serv=0;
                 $gni_arg46 servlen=0;
                 $gni_arg7 flags=0;
 
index 9c67c919d5ebe66b9e4af93874556e98ca034a79..af7e62d0eef8b5884582046efb3e5f4b56f0e228 100644 (file)
@@ -1618,13 +1618,13 @@ if test "$ac_cv_func_getnameinfo" = "yes"; then
   AC_CHECK_DECL(getnameinfo, ,
                 AC_DEFINE(HAVE_NO_GETNAMEINFO_PROTO, 1,
                           [Defined if no getnameinfo() prototype available]),
-    [
-    #ifdef HAVE_SYS_SOCKET_H
-    #include <sys/socket.h>
-    #endif
-    #ifdef HAVE_NETDB_H
-    #include <netdb.h>
-    #endif
+  [
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#ifdef HAVE_NETDB_H
+#include <netdb.h>
+#endif
   ])
   CURL_FUNC_GETNAMEINFO_ARGTYPES
 fi