]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Avoid redefines.
authorGuenter Knauf <lists@gknw.net>
Mon, 17 Jan 2011 00:27:57 +0000 (01:27 +0100)
committerGuenter Knauf <lists@gknw.net>
Mon, 17 Jan 2011 00:27:57 +0000 (01:27 +0100)
lib/setup.h

index 63f51e4fb0a6de5c97521e1a5b0a0cfcb525e88a..68c09a0910b86407c363098f1121833727347b75 100644 (file)
  */
 
 #ifdef HTTP_ONLY
-#  define CURL_DISABLE_TFTP
-#  define CURL_DISABLE_FTP
-#  define CURL_DISABLE_LDAP
-#  define CURL_DISABLE_TELNET
-#  define CURL_DISABLE_DICT
-#  define CURL_DISABLE_FILE
-#  define CURL_DISABLE_RTSP
+#  ifndef CURL_DISABLE_TFTP
+#    define CURL_DISABLE_TFTP
+#  endif
+#  ifndef CURL_DISABLE_FTP
+#    define CURL_DISABLE_FTP
+#  endif
+#  ifndef CURL_DISABLE_LDAP
+#    define CURL_DISABLE_LDAP
+#  endif
+#  ifndef CURL_DISABLE_TELNET
+#    define CURL_DISABLE_TELNET
+#  endif
+#  ifndef CURL_DISABLE_DICT
+#    define CURL_DISABLE_DICT
+#  endif
+#  ifndef CURL_DISABLE_FILE
+#    define CURL_DISABLE_FILE
+#  endif
+#  ifndef CURL_DISABLE_RTSP
+#    define CURL_DISABLE_RTSP
+#  endif
 #endif
 
 /*