check for _MSC_VER as well as __STDC__ when deciding to use the ## operator
authorDaniel Stenberg <daniel@haxx.se>
Sun, 14 Apr 2002 17:29:35 +0000 (17:29 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 14 Apr 2002 17:29:35 +0000 (17:29 +0000)
or not

include/curl/curl.h

index a535475..a621775 100644 (file)
@@ -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. */