]> granicus.if.org Git - curl/commitdiff
fix the ansi/iso cpp check to work with c++
authorDaniel Stenberg <daniel@haxx.se>
Thu, 8 Aug 2002 22:44:09 +0000 (22:44 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 8 Aug 2002 22:44:09 +0000 (22:44 +0000)
include/curl/curl.h

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