]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl.h: add two defines for the "pre ISO C" case
authorDaniel Stenberg <daniel@haxx.se>
Thu, 19 Dec 2019 10:00:58 +0000 (11:00 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 19 Dec 2019 12:48:47 +0000 (13:48 +0100)
Without this fix, this caused a compilation failure on AIX with IBM xlc
13.1.3 compiler.

Reported-by: Ram Krushna Mishra
Fixes #4739
Closes #4740

include/curl/curl.h

index bef8a0bcadad6117f5bcfb8017f28807a28d6f19..a9754fd6484b7cd73c4bcfb330b6adf95c917156 100644 (file)
@@ -956,6 +956,8 @@ typedef enum {
 /* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */
 #define LONG          CURLOPTTYPE_LONG
 #define OBJECTPOINT   CURLOPTTYPE_OBJECTPOINT
+#define STRINGPOINT   CURLOPTTYPE_OBJECTPOINT
+#define SLISTPOINT    CURLOPTTYPE_OBJECTPOINT
 #define FUNCTIONPOINT CURLOPTTYPE_FUNCTIONPOINT
 #define OFF_T         CURLOPTTYPE_OFF_T
 #define CINIT(name,type,number) CURLOPT_/**/name = type + number