diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-09-12 23:46:19 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-09-12 23:46:39 -0700 |
commit | ec2b9f27bd3b051e2c6c26705933b395554d0ab9 (patch) | |
tree | 20bdba8ed8cc50116baeefb6c9e2a62a71de2a3d /tests/test-stdint.c | |
parent | 29d79d473f52b0ec58f50c95ef782c66fc0ead21 (diff) | |
download | gnulib-ec2b9f27bd3b051e2c6c26705933b395554d0ab9.tar.gz |
stdint-tests: long long preproc on recent Sun C
* tests/test-stdint.c: Test long long preprocessor constants on
Oracle Developer Studio 12.6, where they should work.
Diffstat (limited to 'tests/test-stdint.c')
-rw-r--r-- | tests/test-stdint.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test-stdint.c b/tests/test-stdint.c index dc6fad7aa6..737ff56c89 100644 --- a/tests/test-stdint.c +++ b/tests/test-stdint.c @@ -247,9 +247,10 @@ uintmax_t j[2] = { UINTMAX_C (17), UINTMAX_MAX }; 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 +/* Older 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 !((defined __SUNPRO_C && __SUNPRO_C < 0x5150) \ + || (defined __hpux && !defined __GNUC__)) #if INTMAX_MIN && INTMAX_MAX && UINTMAX_MAX /* ok */ #else |