aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-08 22:44:09 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-08 22:44:09 +0000
commit9e4594be5319f0942e1ed9a40dda8b32df3b5cc3 (patch)
treedd813907c12999a727aeef3347dee17690fe4378
parentd16c757c28e80918d7645199e6076036b5f5faff (diff)
fix the ansi/iso cpp check to work with c++
-rw-r--r--include/curl/curl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index efbeefbce..c1f2e272a 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -221,7 +221,7 @@ typedef enum {
#ifdef CINIT
#undef CINIT
#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
#else
/* 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
#endif
-#if defined(__STDC__) || defined(_MSC_VER)
+#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
#define CFINIT(name) CURLFORM_ ## name
#else
/* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */