aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/curl/curl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index a5354758f..a621775f9 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -209,7 +209,7 @@ typedef enum {
#ifdef CINIT
#undef CINIT
#endif
-#ifdef __STDC__
+#if defined(__STDC__) || defined(_MSC_VER)
#define CINIT(name,type,number) CURLOPT_ ## name = CURLOPTTYPE_ ## type + number
#else
/* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */
@@ -595,7 +595,8 @@ int curl_formparse(char *, struct curl_httppost **,
#ifdef CFINIT
#undef CFINIT
#endif
-#ifdef __STDC__
+
+#if defined(__STDC__) || defined(_MSC_VER)
#define CFINIT(name) CURLFORM_ ## name
#else
/* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */