This is required for the macros there to take effect for system
libraries. Specifically, including the system libraries first led to
warnings about `_FILE_OFFSET_BITS` being redefined in curl_config.h on
the Solaris autobuilds for ws-data.c and ws-pingpong.c.
Also make the curl includes come first for the other source files here
for consistency.
Closes https://github.com/curl/curl/pull/11046
* HTTP/2 server push
* </DESC>
*/
+
+/* curl stuff */
+#include <curl/curl.h>
+#include <curl/mprintf.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
-/* curl stuff */
-#include <curl/curl.h>
-#include <curl/mprintf.h>
-
#ifndef CURLPIPE_MULTIPLEX
#error "too old libcurl, cannot do HTTP/2 server push!"
#endif
* HTTP/2 server push
* </DESC>
*/
+
+/* curl stuff */
+#include <curl/curl.h>
+#include <curl/mprintf.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
-/* curl stuff */
-#include <curl/curl.h>
-#include <curl/mprintf.h>
-
#ifndef CURLPIPE_MULTIPLEX
#error "too old libcurl, cannot do HTTP/2 server push!"
#endif
* Websockets data echos
* </DESC>
*/
+
+/* curl stuff */
+#include "curl_setup.h"
+#include <curl/curl.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
-
-/* curl stuff */
-#include <curl/curl.h>
-#include "curl_setup.h"
-
#ifdef USE_WEBSOCKETS
static
* Websockets pingpong
* </DESC>
*/
+
+/* curl stuff */
+#include "curl_setup.h"
+#include <curl/curl.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
-
-/* curl stuff */
-#include <curl/curl.h>
-#include "curl_setup.h"
-
#ifdef USE_WEBSOCKETS
static CURLcode ping(CURL *curl, const char *send_payload)