aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-04-20 07:19:36 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-04-20 07:19:36 +0000
commit36626c4b6e6b10b6d4b7211680711e08096a0cde (patch)
tree2c191096fd75eaec3a238718c0e73b29207e1729 /include
parent7f33aae0678123ceb6f17dbbb5aa42b39c202def (diff)
ifndef check the CURL_MAX_WRITE_SIZE define to allow this value to easier be
changed at build time (from command line or similar)
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index d7f36645c..32a9a14cf 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -210,9 +210,13 @@ typedef int (*curl_progress_callback)(void *clientp,
double ultotal,
double ulnow);
+#ifndef CURL_MAX_WRITE_SIZE
/* Tests have proven that 20K is a very bad buffer size for uploads on
- Windows, while 16K for some odd reason performed a lot better. */
+ Windows, while 16K for some odd reason performed a lot better.
+ We do the ifndef check to allow this value to easier be changed at build
+ time for those who feel adventurous. */
#define CURL_MAX_WRITE_SIZE 16384
+#endif
typedef size_t (*curl_write_callback)(char *buffer,
size_t size,