mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
check for _MSC_VER as well as __STDC__ when deciding to use the ## operator
or not
This commit is contained in:
parent
53c0e97117
commit
e0cc8d2ce9
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user