ICU-460 Porting changes

X-SVN-Rev: 1678
This commit is contained in:
Vladimir Weinstein 2000-06-28 22:20:08 +00:00
parent b7766675e9
commit 497abfd708
2 changed files with 9 additions and 2 deletions

View File

@ -39,6 +39,7 @@
#endif
/* Define _XOPEN_SOURCE for Solaris and friends. */
#ifndef PTX
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE
#endif
@ -50,6 +51,7 @@
#ifndef __USE_XOPEN
#define __USE_XOPEN
#endif
#endif
/* Include standard headers. */
#include <stdio.h>
@ -1403,12 +1405,12 @@ uprv_nextDouble(double d, UBool next)
double epsilon = ((d<0)?-d:d) * smallValue; /* first approximation*/
if (epsilon == 0) epsilon = smallValue; /* for very small d's*/
if (!next) epsilon = -epsilon;
double last_eps = epsilon * 2.0;
/* avoid higher precision possibly used for temporay values*/
#ifdef OS390
last_eps = epsilon * 2.0;
sum = d + epsilon;
#else
double last_eps = epsilon * 2.0;
double sum = d + epsilon;
#endif
while ((sum != d) && (epsilon != last_eps)) {

View File

@ -155,6 +155,11 @@
# endif /* HPUX shl_load */
# else /* not ICU_USE_SHL_LOAD */
/* 'de facto standard' dlopen etc. */
#ifdef PTX
#ifndef RTLD_GLOBAL
#define RTLD_GLOBAL 0
#endif
#endif
# include <dlfcn.h>
# endif
@ -204,7 +209,7 @@
# define MAP_IMPLEMENTATION MAP_WIN32
/* ### Todo: auto detect mmap(). Until then, just add your platform here. */
#elif defined(LINUX) || defined(POSIX) || defined(SOLARIS) || defined(AIX) || defined(HPUX) || defined(OS390)
#elif defined(LINUX) || defined(POSIX) || defined(SOLARIS) || defined(AIX) || defined(HPUX) || defined(OS390) || defined(PTX)
typedef size_t MemoryMap;
# define NO_MAP 0