From e6beafd5046c95f2f9ff5bed41341abc6b193998 Mon Sep 17 00:00:00 2001 From: Steven Solie Date: Sat, 26 Feb 2005 01:38:13 +0000 Subject: [PATCH] Added AmigaOS support. --- expat/lib/amigaconfig.h | 47 +++++++++++++++++++++++++++++++++++++++++ expat/lib/xmlparse.c | 2 ++ expat/lib/xmlrole.c | 2 ++ expat/lib/xmltok.c | 2 ++ 4 files changed, 53 insertions(+) create mode 100644 expat/lib/amigaconfig.h diff --git a/expat/lib/amigaconfig.h b/expat/lib/amigaconfig.h new file mode 100644 index 00000000..6b9fef89 --- /dev/null +++ b/expat/lib/amigaconfig.h @@ -0,0 +1,47 @@ +#ifndef AMIGACONFIG_H +#define AMIGACONFIG_H + +/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */ +#define BYTEORDER 4321 + +/* Define to 1 if you have the `bcopy' function. */ +#define HAVE_BCOPY + +/* Define to 1 if you have the header file. */ +#define HAVE_FCNTL_H + +/* Define to 1 if you have the `memmove' function. */ +#define HAVE_MEMMOVE + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS + +/* whether byteorder is bigendian */ +#define WORDS_BIGENDIAN + +/* Define to specify how much context to retain around the current parse + point. */ +#define XML_CONTEXT_BYTES 1024 + +/* Define to make parameter entity parsing functionality available. */ +#define XML_DTD 1 + +/* Define to make XML Namespaces functionality available. */ +#define XML_NS 1 + +#endif diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index b87acd4d..75a7aa95 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -12,6 +12,8 @@ #include "winconfig.h" #elif defined(MACOS_CLASSIC) #include "macconfig.h" +#elif defined(__amigaos4__) +#include "amigaconfig.h" #elif defined(HAVE_EXPAT_CONFIG_H) #include #endif /* ndef COMPILED_FROM_DSP */ diff --git a/expat/lib/xmlrole.c b/expat/lib/xmlrole.c index b32d8e73..3782f1ec 100644 --- a/expat/lib/xmlrole.c +++ b/expat/lib/xmlrole.c @@ -8,6 +8,8 @@ #include "winconfig.h" #elif defined(MACOS_CLASSIC) #include "macconfig.h" +#elif defined(__amigaos4__) +#include "amigaconfig.h" #else #ifdef HAVE_EXPAT_CONFIG_H #include diff --git a/expat/lib/xmltok.c b/expat/lib/xmltok.c index be368949..26cee4d4 100644 --- a/expat/lib/xmltok.c +++ b/expat/lib/xmltok.c @@ -8,6 +8,8 @@ #include "winconfig.h" #elif defined(MACOS_CLASSIC) #include "macconfig.h" +#elif defined(__amigaos4__) +#include "amigaconfig.h" #else #ifdef HAVE_EXPAT_CONFIG_H #include