[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compile problem on HP-UX 10.20 with test-stdint.c
From: |
Bruno Haible |
Subject: |
Re: Compile problem on HP-UX 10.20 with test-stdint.c |
Date: |
Sun, 22 Jun 2008 22:19:53 +0200 |
User-agent: |
KMail/1.5.4 |
Eric Blake wrote:
> I thought we already decided that requiring long long support in the
> preprocessor is a losing battle, at least for a couple more years.
We found out that also Sun C does not support 'long long' right in preprocessor
expressions.
> ie. comment out the preprocessor checks for now
ok, done as follows.
2008-06-22 Bruno Haible <address@hidden>
* tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
conditionally.
Reported by Albert Chin <address@hidden>.
*** tests/test-stdint.c.orig 2008-06-22 22:17:00.000000000 +0200
--- tests/test-stdint.c 2008-06-22 22:16:23.000000000 +0200
***************
*** 1,5 ****
/* Test of <stdint.h> substitute.
! Copyright (C) 2006, 2007 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
--- 1,5 ----
/* Test of <stdint.h> substitute.
! Copyright (C) 2006-2008 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
***************
*** 246,256 ****
--- 246,260 ----
verify (TYPE_MAXIMUM (uintmax_t) == UINTMAX_MAX);
verify_same_types (UINTMAX_MAX, (uintmax_t) 0 + 0);
+ /* As of 2007, Sun C and HP-UX 10.20 cc don't support 'long long' constants in
+ the preprocessor. */
+ #if !(defined __SUNPRO_C || (defined __hpux && !defined __GNUC__))
#if INTMAX_MIN && INTMAX_MAX && UINTMAX_MAX
/* ok */
#else
err or;
#endif
+ #endif
/* 7.18.3. Limits of other integer types */