[libxml2] Portability fixes for OS/400
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Portability fixes for OS/400
- Date: Thu, 12 Dec 2013 07:51:38 +0000 (UTC)
commit ca9fc43bf7a44c88b2b8bb9ac2b4da21ebac2972
Author: Patrick Monnerat <Patrick Monnerat datasphere ch>
Date: Thu Dec 12 15:11:40 2013 +0800
Portability fixes for OS/400
triodef.h | 6 ++++++
triostr.c | 4 ++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/triodef.h b/triodef.h
index fa89416..46772ee 100644
--- a/triodef.h
+++ b/triodef.h
@@ -48,6 +48,8 @@
* based on the DECC compiler later on.
*/
# define TRIO_PLATFORM_VMS
+#elif defined(__OS400__)
+# define TRIO_PLATFORM_OS400
#elif defined(unix) || defined(__unix) || defined(__unix__)
# define TRIO_PLATFORM_UNIX
#elif defined(TRIO_COMPILER_XLC) || defined(_AIX)
@@ -98,6 +100,10 @@
# define TRIO_COMPILER_SUPPORTS_C94
# endif
# endif
+#elif defined(TRIO_COMPILER_XLC) && defined(__EXTENDED__)
+# define TRIO_COMPILER_SUPPORTS_C89
+# define TRIO_COMPILER_SUPPORTS_C90
+# define TRIO_COMPILER_SUPPORTS_C94
#endif
#if defined(_XOPEN_SOURCE)
diff --git a/triostr.c b/triostr.c
index e507645..3c5c667 100644
--- a/triostr.c
+++ b/triostr.c
@@ -78,6 +78,10 @@
# else
# define strcasecmp(x,y) strcmpi(x,y)
# endif
+#elif defined(TRIO_PLATFORM_OS400)
+# define USE_STRCASECMP
+# define USE_STRNCASECMP
+# include <strings.h>
#endif
#if !(defined(TRIO_PLATFORM_SUNOS))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]