Commit ca9fc43b authored by Patrick Monnerat's avatar Patrick Monnerat Committed by Daniel Veillard

Portability fixes for OS/400

parent 0f7a26d8
...@@ -48,6 +48,8 @@ ...@@ -48,6 +48,8 @@
* based on the DECC compiler later on. * based on the DECC compiler later on.
*/ */
# define TRIO_PLATFORM_VMS # define TRIO_PLATFORM_VMS
#elif defined(__OS400__)
# define TRIO_PLATFORM_OS400
#elif defined(unix) || defined(__unix) || defined(__unix__) #elif defined(unix) || defined(__unix) || defined(__unix__)
# define TRIO_PLATFORM_UNIX # define TRIO_PLATFORM_UNIX
#elif defined(TRIO_COMPILER_XLC) || defined(_AIX) #elif defined(TRIO_COMPILER_XLC) || defined(_AIX)
...@@ -98,6 +100,10 @@ ...@@ -98,6 +100,10 @@
# define TRIO_COMPILER_SUPPORTS_C94 # define TRIO_COMPILER_SUPPORTS_C94
# endif # endif
# 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 #endif
#if defined(_XOPEN_SOURCE) #if defined(_XOPEN_SOURCE)
......
...@@ -78,6 +78,10 @@ ...@@ -78,6 +78,10 @@
# else # else
# define strcasecmp(x,y) strcmpi(x,y) # define strcasecmp(x,y) strcmpi(x,y)
# endif # endif
#elif defined(TRIO_PLATFORM_OS400)
# define USE_STRCASECMP
# define USE_STRNCASECMP
# include <strings.h>
#endif #endif
#if !(defined(TRIO_PLATFORM_SUNOS)) #if !(defined(TRIO_PLATFORM_SUNOS))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment