From: Viktor Szakats Date: Fri, 24 May 2024 17:52:05 +0000 (+0200) Subject: examples: delete unused includes X-Git-Tag: curl-8_9_0~367 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=53b4dfe405dca1eeff0ac48e2fc96d7782e887a7;p=thirdparty%2Fcurl.git examples: delete unused includes Delete a bunch of unnecessary-looking headers from some examples. This is known to be tricky on AIX (perhaps also in other less-tested envs). Let me know if any of this looks incorrect or outright fails on some systems. Follow-up to d4b85890555388bec212b75f47a5c1a48705b156 #13771 Closes #13785 --- diff --git a/docs/examples/10-at-a-time.c b/docs/examples/10-at-a-time.c index 1221126e36..38a0f24ac6 100644 --- a/docs/examples/10-at-a-time.c +++ b/docs/examples/10-at-a-time.c @@ -26,12 +26,8 @@ * */ -#include #include #include -#ifndef _WIN32 -# include -#endif #include static const char *urls[] = { diff --git a/docs/examples/cookie_interface.c b/docs/examples/cookie_interface.c index 0cc47cff7f..2b11b48687 100644 --- a/docs/examples/cookie_interface.c +++ b/docs/examples/cookie_interface.c @@ -29,7 +29,6 @@ #include #include #include -#include #include #include diff --git a/docs/examples/http2-download.c b/docs/examples/http2-download.c index 3889b0d8a4..952b2cd4c1 100644 --- a/docs/examples/http2-download.c +++ b/docs/examples/http2-download.c @@ -30,12 +30,6 @@ #include #include -/* somewhat unix-specific */ -#ifndef _WIN32 -#include -#include -#endif - /* curl stuff */ #include #include diff --git a/docs/examples/http2-pushinmemory.c b/docs/examples/http2-pushinmemory.c index cc1422d5a0..53c368e012 100644 --- a/docs/examples/http2-pushinmemory.c +++ b/docs/examples/http2-pushinmemory.c @@ -29,12 +29,6 @@ #include #include -/* somewhat unix-specific */ -#ifndef _WIN32 -#include -#include -#endif - /* curl stuff */ #include diff --git a/docs/examples/http2-serverpush.c b/docs/examples/http2-serverpush.c index a03ff4efbb..29e266306e 100644 --- a/docs/examples/http2-serverpush.c +++ b/docs/examples/http2-serverpush.c @@ -29,12 +29,6 @@ #include #include -/* somewhat unix-specific */ -#ifndef _WIN32 -#include -#include -#endif - /* curl stuff */ #include diff --git a/docs/examples/multi-app.c b/docs/examples/multi-app.c index 95c8981ac5..87a23fb27b 100644 --- a/docs/examples/multi-app.c +++ b/docs/examples/multi-app.c @@ -30,12 +30,6 @@ #include #include -/* somewhat unix-specific */ -#ifndef _WIN32 -#include -#include -#endif - /* curl stuff */ #include diff --git a/docs/examples/multi-debugcallback.c b/docs/examples/multi-debugcallback.c index 68f30e9b03..a5be174da1 100644 --- a/docs/examples/multi-debugcallback.c +++ b/docs/examples/multi-debugcallback.c @@ -29,12 +29,6 @@ #include #include -/* somewhat unix-specific */ -#ifndef _WIN32 -#include -#include -#endif - /* curl stuff */ #include diff --git a/docs/examples/multi-double.c b/docs/examples/multi-double.c index b59b665fd4..99bd736a9c 100644 --- a/docs/examples/multi-double.c +++ b/docs/examples/multi-double.c @@ -28,12 +28,6 @@ #include #include -/* somewhat unix-specific */ -#ifndef _WIN32 -#include -#include -#endif - /* curl stuff */ #include diff --git a/docs/examples/multi-formadd.c b/docs/examples/multi-formadd.c index 1f2d6d6d27..e42b4806c7 100644 --- a/docs/examples/multi-formadd.c +++ b/docs/examples/multi-formadd.c @@ -33,9 +33,6 @@ #include #include -#ifndef _WIN32 -#include -#endif #include diff --git a/docs/examples/multi-post.c b/docs/examples/multi-post.c index 886f3d2600..84af48f4bf 100644 --- a/docs/examples/multi-post.c +++ b/docs/examples/multi-post.c @@ -28,9 +28,6 @@ #include #include -#ifndef _WIN32 -#include -#endif #include diff --git a/docs/examples/multi-single.c b/docs/examples/multi-single.c index 79841bf89a..0ead96f487 100644 --- a/docs/examples/multi-single.c +++ b/docs/examples/multi-single.c @@ -29,12 +29,6 @@ #include #include -/* somewhat unix-specific */ -#ifndef _WIN32 -#include -#include -#endif - /* curl stuff */ #include diff --git a/docs/examples/persistent.c b/docs/examples/persistent.c index 86488666cd..be5e8c33e6 100644 --- a/docs/examples/persistent.c +++ b/docs/examples/persistent.c @@ -26,9 +26,6 @@ * */ #include -#ifndef _WIN32 -#include -#endif #include diff --git a/docs/examples/sepheaders.c b/docs/examples/sepheaders.c index 8679b13519..31a3201241 100644 --- a/docs/examples/sepheaders.c +++ b/docs/examples/sepheaders.c @@ -27,9 +27,6 @@ */ #include #include -#ifndef _WIN32 -#include -#endif #include diff --git a/docs/examples/url2file.c b/docs/examples/url2file.c index 5bfe26fe06..9ed7da5a84 100644 --- a/docs/examples/url2file.c +++ b/docs/examples/url2file.c @@ -27,9 +27,6 @@ */ #include #include -#ifndef _WIN32 -#include -#endif #include diff --git a/docs/examples/xmlstream.c b/docs/examples/xmlstream.c index 76a8e48cce..d779e6e7cf 100644 --- a/docs/examples/xmlstream.c +++ b/docs/examples/xmlstream.c @@ -36,7 +36,6 @@ #include #include #include -#include #include #include