Commit 040c96d8cea1201ce4df6d6f8a1e6c2852edbf49

  • avatar
  • khansen
  • Wed Feb 10 12:14:34 CET 2010
Fix compilation on HP-UX (aCC IA64 and HPPA)

Adapted from Thiago's patch.
  
104104#endif
105105
106106/* CPU(IA64) - Itanium / IA-64 */
107#if defined(__ia64__)
107#if defined(__ia64__) || defined(__ia64) || defined(_M_IA64)
108108#define WTF_CPU_IA64 1
109109/* 32-bit mode on Itanium */
110110#if !defined(__LP64__)
111111#define WTF_CPU_IA64_32 1
112112#endif
113/* Itanium can be both big- and little-endian;
114 we need to determine at compile time which one it is.
115 - HP's aCC compiler only compiles big-endian (so HP-UXi is always big-endian)
116 - GCC defines __BIG_ENDIAN__ for us (default on HP-UX)
117 - Linux is usually little-endian
118 - I've never seen AIX or Windows on IA-64, but they should be little-endian too
119*/
120#if defined(__BIG_ENDIAN__) || defined(__HP_aCC)
121# define WTF_CPU_BIG_ENDIAN 1
122#endif
123#endif
124
125/* CPU(HPPA) - a.k.a. PA-RISC */
126#if defined(__hppa) || defined(__hppa__)
127#define WTF_CPU_HPPA 1
128#define WTF_CPU_BIG_ENDIAN 1
113129#endif
114130
115131/* CPU(PPC) - PowerPC 32-bit */