From 6dc053114b8fe213e7d1b41f99d1ec4ab436d29a Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 20 Jun 2012 13:16:48 -0400 Subject: [PATCH] KWIML: Teach ABI.h about 'long long' and 'char' on old HP The "HP92453-01 A.11.01.20 HP C Compiler" does not define any identifying macros except for platform __hpux. If we see that platform with no other compiler identification then assume this compiler. It has 'long long' and its 'char' is signed unless the +uc option is added. --- ABI.h.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ABI.h.in b/ABI.h.in index e85a1c588..060a520db 100644 --- a/ABI.h.in +++ b/ABI.h.in @@ -156,6 +156,8 @@ suppression macro @KWIML@_ABI_NO_VERIFY was defined. # define @KWIML@_ABI_CHAR_IS_UNSIGNED 1 # elif defined(__BORLANDC__) /* Borland default */ # define @KWIML@_ABI_CHAR_IS_SIGNED 1 +# elif defined(__hpux) /* Old HP: no __HP_cc/__HP_aCC/__GNUC__ above */ +# define @KWIML@_ABI_CHAR_IS_SIGNED 1 /* (unless +uc) */ # endif #endif #if !defined(@KWIML@_ABI_CHAR_IS_UNSIGNED) && !defined(@KWIML@_ABI_CHAR_IS_SIGNED) \ @@ -251,6 +253,8 @@ suppression macro @KWIML@_ABI_NO_VERIFY was defined. # else # define @KWIML@_ABI_SIZEOF_LONG_LONG 0 # endif +# elif defined(__hpux) && !defined(__GNUC__) /* Old HP: no __HP_cc/__HP_aCC above */ +# define @KWIML@_ABI_SIZEOF_LONG_LONG 8 # endif #endif #if !defined(@KWIML@_ABI_SIZEOF_LONG_LONG) && !defined(@KWIML@_ABI_NO_ERROR_LONG_LONG)