aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-10-31 22:48:21 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-10-31 22:51:20 +0100
commit49a991346e9c6f334d014f16944744a1dac11c64 (patch)
treef88991c03ae10f47c6208402e77c858c863a012d /lib
parentfbf09b77752930b0a9f6758bd97d7064ff835d3d (diff)
curl.h: s/HTTPPOST_/CURL_HTTPOST_
Fixes a name space pollution at the cost of programs using one of these defines will no longer compile. However, the vast majority of libcurl programs that do multipart formposts use curl_formadd() to build this list. Closes #506
Diffstat (limited to 'lib')
-rw-r--r--lib/formdata.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/formdata.c b/lib/formdata.c
index 66449b982..a4e6ab35d 100644
--- a/lib/formdata.c
+++ b/lib/formdata.c
@@ -57,6 +57,14 @@ static char *formboundary(struct SessionHandle *data);
#define FORM_FILE_SEPARATOR ','
#define FORM_TYPE_SEPARATOR ';'
+#define HTTPPOST_PTRNAME CURL_HTTPPOST_PTRNAME
+#define HTTPPOST_FILENAME CURL_HTTPPOST_FILENAME
+#define HTTPPOST_PTRCONTENTS CURL_HTTPPOST_PTRCONTENTS
+#define HTTPPOST_READFILE CURL_HTTPPOST_READFILE
+#define HTTPPOST_PTRBUFFER CURL_HTTPPOST_PTRBUFFER
+#define HTTPPOST_CALLBACK CURL_HTTPPOST_CALLBACK
+#define HTTPPOST_BUFFER CURL_HTTPPOST_BUFFER
+
/***************************************************************************
*
* AddHttpPost()