diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2022-11-22 15:40:51 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2022-11-22 16:03:05 +0100 |
commit | 34a5a4a5e54c148e5cea9665d88e2004b7c4396c (patch) | |
tree | 574d400f90910cc30d4c5b93873b42abea55e2d7 | |
parent | 701beb4ec7b31e838b0667588d023c3d8c9c1fd9 (diff) | |
download | libxml2-34a5a4a5e54c148e5cea9665d88e2004b7c4396c.tar.gz |
tests: Remove unneeded #includes
-rw-r--r-- | runsuite.c | 4 | ||||
-rw-r--r-- | runtest.c | 5 | ||||
-rw-r--r-- | runxmlconf.c | 4 | ||||
-rw-r--r-- | testThreads.c | 3 | ||||
-rw-r--r-- | testlimits.c | 4 | ||||
-rw-r--r-- | testrecurse.c | 5 |
6 files changed, 3 insertions, 22 deletions
@@ -9,12 +9,8 @@ #include "libxml.h" #include <stdio.h> -#if !defined(_WIN32) -#include <unistd.h> -#endif #include <string.h> #include <sys/stat.h> -#include <fcntl.h> #include <libxml/parser.h> #include <libxml/parserInternals.h> @@ -14,8 +14,10 @@ #include "libxml.h" #include <stdio.h> -#if !defined(_WIN32) +#ifdef HAVE_UNISTD_H #include <unistd.h> +#elif defined (_WIN32) +#include <io.h> #endif #include <string.h> #include <sys/stat.h> @@ -110,7 +112,6 @@ static int checkTestFile(const char *filename); #if defined(_WIN32) #include <windows.h> -#include <io.h> typedef struct { diff --git a/runxmlconf.c b/runxmlconf.c index 69ce39fc..8df9df13 100644 --- a/runxmlconf.c +++ b/runxmlconf.c @@ -11,12 +11,8 @@ #ifdef LIBXML_XPATH_ENABLED -#if !defined(_WIN32) -#include <unistd.h> -#endif #include <string.h> #include <sys/stat.h> -#include <fcntl.h> #include <libxml/parser.h> #include <libxml/parserInternals.h> diff --git a/testThreads.c b/testThreads.c index 0714deba..709ae769 100644 --- a/testThreads.c +++ b/testThreads.c @@ -14,9 +14,6 @@ #include <windows.h> #endif #include <string.h> -#if !defined(_MSC_VER) -#include <unistd.h> -#endif #include <assert.h> #define MAX_ARGC 20 diff --git a/testlimits.c b/testlimits.c index 6322f8ba..2ee832b5 100644 --- a/testlimits.c +++ b/testlimits.c @@ -13,12 +13,8 @@ #include "libxml.h" #include <stdio.h> -#if !defined(_WIN32) -#include <unistd.h> -#endif #include <string.h> #include <sys/stat.h> -#include <fcntl.h> #include <time.h> #include <libxml/parser.h> diff --git a/testrecurse.c b/testrecurse.c index d213ebc6..0cf7342e 100644 --- a/testrecurse.c +++ b/testrecurse.c @@ -13,12 +13,8 @@ #include "libxml.h" #include <stdio.h> -#if !defined(_WIN32) -#include <unistd.h> -#endif #include <string.h> #include <sys/stat.h> -#include <fcntl.h> #include <libxml/parser.h> #include <libxml/tree.h> @@ -58,7 +54,6 @@ static int checkTestFile(const char *filename); #if defined(_WIN32) #include <windows.h> -#include <io.h> typedef struct { |