diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2009-10-24 14:33:19 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2009-10-24 14:33:19 +0000 |
commit | 0970ee497ffd92e323edb2496510a9d55ecc6529 (patch) | |
tree | f596fe819971a472a9748c8d828084007efbde19 /ACE/ace/Basic_Types.h | |
parent | db869316effff0f0eedff1a31899f8a3aad19e37 (diff) | |
download | ATCD-0970ee497ffd92e323edb2496510a9d55ecc6529.tar.gz |
Sat Oct 24 14:33:33 UTC 2009 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/Basic_Types.h:
Fix for PPC64
Diffstat (limited to 'ACE/ace/Basic_Types.h')
-rw-r--r-- | ACE/ace/Basic_Types.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ACE/ace/Basic_Types.h b/ACE/ace/Basic_Types.h index 3b05a22a1ad..3dcd47028d5 100644 --- a/ACE/ace/Basic_Types.h +++ b/ACE/ace/Basic_Types.h @@ -901,13 +901,17 @@ ACE_END_VERSIONED_NAMESPACE_DECL # if LDBL_MAX_EXP == 128 # define ACE_SIZEOF_LONG_DOUBLE 4 # elif LDBL_MAX_EXP == 1024 -# define ACE_SIZEOF_LONG_DOUBLE 8 +# if (defined (__powerpc64__)) +# define ACE_SIZEOF_LONG_DOUBLE 16 +# else +# define ACE_SIZEOF_LONG_DOUBLE 8 +# endif # elif LDBL_MAX_EXP == 16384 # if defined (LDBL_DIG) && LDBL_DIG == 18 -# if defined (__ia64) || defined (__x86_64) || defined (__ppc64) +# if defined (__ia64) || defined (__x86_64) # define ACE_SIZEOF_LONG_DOUBLE 16 -# else /* ! __ia64 */ -# define ACE_SIZEOF_LONG_DOUBLE 12 +# else /* ! __ia64 || __x86_64 */ +# define ACE_SIZEOF_LONG_DOUBLE 12 # endif /* __ia64 */ # else /* ! LDBL_DIG || LDBL_DIG != 18 */ # define ACE_SIZEOF_LONG_DOUBLE 16 |