1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

check for _MSC_VER as well as __STDC__ when deciding to use the ## operator

or not
This commit is contained in:
Daniel Stenberg 2002-04-14 17:29:35 +00:00
parent 53c0e97117
commit e0cc8d2ce9

View 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. */