summaryrefslogtreecommitdiff
path: root/chromium/third_party/libxml/src/nanoftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/libxml/src/nanoftp.c')
-rw-r--r--chromium/third_party/libxml/src/nanoftp.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/chromium/third_party/libxml/src/nanoftp.c b/chromium/third_party/libxml/src/nanoftp.c
index 18c1ce4377c..6de7d300a3a 100644
--- a/chromium/third_party/libxml/src/nanoftp.c
+++ b/chromium/third_party/libxml/src/nanoftp.c
@@ -6,7 +6,6 @@
#ifdef TESTING
#define STANDALONE
-#define HAVE_STDLIB_H
#define HAVE_UNISTD_H
#define HAVE_SYS_SOCKET_H
#define HAVE_NETINET_IN_H
@@ -19,10 +18,9 @@
#ifdef LIBXML_FTP_ENABLED
#include <string.h>
-
-#ifdef HAVE_STDLIB_H
#include <stdlib.h>
-#endif
+#include <errno.h>
+
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
@@ -41,9 +39,6 @@
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
-#ifdef HAVE_ERRNO_H
-#include <errno.h>
-#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
@@ -56,9 +51,6 @@
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
@@ -75,7 +67,7 @@
#endif
-#if defined(_WIN32) && !defined(__CYGWIN__)
+#if defined(_WIN32)
#include <wsockcompat.h>
#endif
@@ -2114,5 +2106,3 @@ int main(int argc, char **argv) {
}
#endif /* STANDALONE */
#endif /* LIBXML_FTP_ENABLED */
-#define bottom_nanoftp
-#include "elfgcchack.h"