summaryrefslogtreecommitdiff
path: root/nanoftp.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2000-07-14 14:49:25 +0000
committerDaniel Veillard <veillard@src.gnome.org>2000-07-14 14:49:25 +0000
commit32bc74ef98c7bd6172327fb03f68766f6ee4b6a2 (patch)
treeddef7c9058df5c69694c2de2f6ae3be6eb966f65 /nanoftp.c
parent8d86964a4aa0f89344ba2065830ad30e6d0e0d47 (diff)
downloadlibxml2-32bc74ef98c7bd6172327fb03f68766f6ee4b6a2.tar.gz
- doc/encoding.html doc/xml.html: added I18N doc
- encoding.[ch] HTMLtree.[ch] parser.c HTMLparser.c: I18N encoding improvements, both parser and filters, added ASCII & HTML, fixed the ISO-Latin-1 one - xmllint.c testHTML.c: added/made visible --encode - debugXML.c : cleanup - most .c files: applied patches due to warning on Windows and when using Sun Pro cc compiler - xpath.c : cleanup memleaks - nanoftp.c : added a TESTING preprocessor flag for standalong compile so that people can report bugs more easilly - nanohttp.c : ditched socklen_t which was a portability mess and replaced it with unsigned int. - tree.[ch]: added xmlHasProp() - TODO: updated - test/ : added more test for entities, NS, encoding, HTML, wap - configure.in: preparing for 2.2.0 release Daniel
Diffstat (limited to 'nanoftp.c')
-rw-r--r--nanoftp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/nanoftp.c b/nanoftp.c
index 8d490e09..96fa272d 100644
--- a/nanoftp.c
+++ b/nanoftp.c
@@ -4,12 +4,22 @@
* Reference: RFC 959
*/
+#ifdef TESTING
+#define STANDALONE
+#define HAVE_STDLIB_H
+#define HAVE_UNISTD_H
+#define HAVE_SYS_SOCKET_H
+#define HAVE_NETINET_IN_H
+#define HAVE_NETDB_H
+#define HAVE_SYS_TIME_H
+#else /* STANDALONE */
#ifdef WIN32
#define INCLUDE_WINSOCK
#include "win32config.h"
#else
#include "config.h"
#endif
+#endif /* STANDALONE */
#include "xmlversion.h"