]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
examples: make `CURLPIPE_MULTIPLEX` fallback `long`
authorViktor Szakats <commit@vsz.me>
Fri, 22 Aug 2025 11:50:39 +0000 (13:50 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 22 Aug 2025 12:16:45 +0000 (14:16 +0200)
Closes #18356

docs/examples/http2-download.c
docs/examples/http2-upload.c

index 4a249fa97988f7aca61e6ef9a187126196470512..ac9b9a082e07c8922b9f7bc7d8f4c0417e4f6ae7 100644 (file)
@@ -42,7 +42,7 @@
 /* This little trick makes sure that we do not enable pipelining for libcurls
    old enough to not have this symbol. It is _not_ defined to zero in a recent
    libcurl header. */
-#define CURLPIPE_MULTIPLEX 0
+#define CURLPIPE_MULTIPLEX 0L
 #endif
 
 struct transfer {
index c24e5937c17c1cfe49c20181c6b0e9cfc19a1a1d..c033b0b685a93c6aa2d9b7eb0a3220574549011c 100644 (file)
@@ -55,7 +55,7 @@
 /* This little trick makes sure that we do not enable pipelining for libcurls
    old enough to not have this symbol. It is _not_ defined to zero in a recent
    libcurl header. */
-#define CURLPIPE_MULTIPLEX 0
+#define CURLPIPE_MULTIPLEX 0L
 #endif
 
 #define NUM_HANDLES 1000