mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-1891 Better support for int64_t on z/OS.
X-SVN-Rev: 9256
This commit is contained in:
parent
3880202787
commit
bd7952898b
1 changed files with 10 additions and 5 deletions
|
@ -120,19 +120,24 @@
|
|||
need to edit the typedefs below. */
|
||||
#if U_HAVE_INTTYPES_H
|
||||
|
||||
#include <inttypes.h>
|
||||
/* autoconf 2.13 sometimes can't properly find uint8_t, so we depend on <inttypes.h>. */
|
||||
/* os/390 on the other hand, never defines int8_t in <inttypes.h>. */
|
||||
/* So we have this work around */
|
||||
/* autoconf 2.13 sometimes can't properly find the data types in <inttypes.h> */
|
||||
/* os/390 needs <inttypes.h>, but it doesn't have int8_t, and it sometimes */
|
||||
/* doesn't have uint8_t depending on the OS version. */
|
||||
/* So we have this work around. */
|
||||
#ifdef OS390
|
||||
/* The features header is needed to get (u)int64_t sometimes. */
|
||||
#include <features.h>
|
||||
#if ! U_HAVE_INT8_T
|
||||
typedef signed char int8_t;
|
||||
#endif
|
||||
#if ! U_HAVE_UINT8_T && !defined(__uint8_t)
|
||||
#if !defined(__uint8_t)
|
||||
#define __uint8_t 1
|
||||
typedef unsigned char uint8_t;
|
||||
#endif
|
||||
#endif /* OS390 */
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
#else /* U_HAVE_INTTYPES_H */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue