Bläddra i källkod

Fixed compiler warning about re-definitions of system macros

The header "mhd_sys_options.h" controls behaviour of other included
headers and must be always included first (if included).
Evgeny Grin (Karlson2k) 1 år sedan
förälder
incheckning
a44819dbdf

+ 1 - 1
src/tests/client_server/libtest.c

@@ -23,12 +23,12 @@
  * @brief testing harness with clients against server
  * @author Christian Grothoff
  */
+#include "libtest.h"
 #include <pthread.h>
 #include <stdbool.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <errno.h>
-#include "libtest.h"
 
 /**
  * A semaphore.

+ 1 - 1
src/tests/client_server/libtest_convenience.c

@@ -23,12 +23,12 @@
  * @brief convenience functions for libtest users
  * @author Christian Grothoff
  */
+#include "libtest.h"
 #include <pthread.h>
 #include <stdbool.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <errno.h>
-#include "libtest.h"
 #include <curl/curl.h>
 
 

+ 1 - 1
src/tests/client_server/libtest_convenience_client_request.c

@@ -23,12 +23,12 @@
  * @brief convenience functions implementing clients making requests for libtest users
  * @author Christian Grothoff
  */
+#include "libtest.h"
 #include <pthread.h>
 #include <stdbool.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <errno.h>
-#include "libtest.h"
 #include <curl/curl.h>
 
 

+ 1 - 1
src/tests/client_server/libtest_convenience_server_reply.c

@@ -25,13 +25,13 @@
  *   replies from the server for libtest users
  * @author Christian Grothoff
  */
+#include "libtest.h"
 #include <pthread.h>
 #include <stdbool.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <errno.h>
-#include "libtest.h"
 #include <curl/curl.h>