mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
fix the ansi/iso cpp check to work with c++
This commit is contained in:
parent
d16c757c28
commit
9e4594be53
@ -221,7 +221,7 @@ typedef enum {
|
|||||||
#ifdef CINIT
|
#ifdef CINIT
|
||||||
#undef CINIT
|
#undef CINIT
|
||||||
#endif
|
#endif
|
||||||
#if defined(__STDC__) || defined(_MSC_VER)
|
#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
|
||||||
#define CINIT(name,type,number) CURLOPT_ ## name = CURLOPTTYPE_ ## type + number
|
#define CINIT(name,type,number) CURLOPT_ ## name = CURLOPTTYPE_ ## type + number
|
||||||
#else
|
#else
|
||||||
/* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */
|
/* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */
|
||||||
@ -650,7 +650,7 @@ int curl_formparse(char *, struct curl_httppost **,
|
|||||||
#undef CFINIT
|
#undef CFINIT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__STDC__) || defined(_MSC_VER)
|
#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
|
||||||
#define CFINIT(name) CURLFORM_ ## name
|
#define CFINIT(name) CURLFORM_ ## name
|
||||||
#else
|
#else
|
||||||
/* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */
|
/* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */
|
||||||
|
Loading…
Reference in New Issue
Block a user