aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-07-14 12:39:50 +0000
committerYang Tse <yangsita@gmail.com>2008-07-14 12:39:50 +0000
commitfe7bb33af8d8b4e0ede43b4fa1caf7d8b00c7966 (patch)
tree7972712642de31e4a187ec74678ebb91606447ce /lib
parentda6fa34f021c5dfd3d0ecc9de6950497dc1a737a (diff)
HTTP_ONLY definition check in lib/setup.h is now done once that configuration
file has been included. In this way if symbol is defined in the config file it will no longer be ignored.
Diffstat (limited to 'lib')
-rw-r--r--lib/setup.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/lib/setup.h b/lib/setup.h
index 1f8505d13..dca6da42d 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -23,15 +23,6 @@
* $Id$
***************************************************************************/
-#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
-#endif /* HTTP_ONLY */
-
/*
* Define WIN32 when build target is Win32 API
*/
@@ -83,6 +74,19 @@
#endif /* HAVE_CONFIG_H */
/*
+ * Disable other protocols when http is the only one desired.
+ */
+
+#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
+#endif
+
+/*
* Include header files for windows builds before redefining anything.
* Use this preproessor block only to include or exclude windows.h,
* winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs