Cleaned up some of the platform-specific ifdef's. Using HAVE_INT16_T, HAVE_INT32_T, and HAVE_UINT16_T now.

git-svn-id: svn://10.0.0.236/trunk@23653 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
briano%netscape.com
1999-03-11 02:37:23 +00:00
parent 7d557e36ad
commit 96a96a8041

View File

@@ -28,18 +28,21 @@
PR_BEGIN_EXTERN_C
#if (defined(__sun) && !defined(SOLARIS2_6)) || defined(HPUX9) || defined(HPUX10_10) || defined(XP_PC) || !defined(AIX) || defined(OSF1) || defined(XP_MAC) || defined(SONY) || defined(SNI) || defined(UNIXWARE) || defined(LINUX) || defined(DGUX)
#ifndef HAVE_INT16_T
typedef int16 int16_t;
#endif
#ifndef HAVE_INT32_T
typedef int32 int32_t;
#endif
#if !defined(IRIX6_2) && !defined(IRIX6_3) && !defined(SOLARIS2_6) && !defined(HPUX10_20) && !defined(HPUX10_30) && !defined(HPUX11) && !defined(AIX)
#ifndef HAVE_UINT16_T
typedef uint16 uint16_t;
#ifndef _UINT32_T
#define _UINT32_T
typedef uint32 uint32_t;
#endif /* _UINT32_T */
#endif /* !defined(IRIX6_2) && !defined(IRIX6_3) && !defined(SOLARIS2_6) */
#endif
#endif
typedef prword_t uintVP_t; /* unsigned that is same size as a void pointer */
@@ -56,15 +59,16 @@ typedef int64 int64_t;
#if defined(XP_PC) || (defined(__sun) && !defined(SVR4)) || defined(HPUX) || defined(LINUX) || defined(BSDI) /* || defined(XP_MAC) */
typedef unsigned int uint_t;
#elif defined(XP_MAC)
/* we have to push/pop to avoid breaking existing projects that
have "treat warnings as errors" on. This is two, two, TWO hacks in one! (pinkerton) */
#pragma warning_errors off
#ifndef __OPENTRANSPORT__
typedef unsigned long uint_t; /* this is already declared in OpenTransport.h, but we don't want to drag in
all the other defines present there. This is a bad solution, but the
least bad given the alternatives. */
#endif /* __OPENTRANSPORT__ */
#pragma warning_errors reset
/* we have to push/pop to avoid breaking existing projects that
** have "treat warnings as errors" on. This is two, two, TWO hacks in one! (pinkerton)
*/
#pragma warning_errors off
#ifndef __OPENTRANSPORT__
typedef unsigned long uint_t; /* this is already declared in OpenTransport.h, but we don't want to drag in
all the other defines present there. This is a bad solution, but the
least bad given the alternatives. */
#endif /* __OPENTRANSPORT__ */
#pragma warning_errors reset
#endif
#if defined(XP_PC) && !defined(XP_OS2)