From ec2b9f27bd3b051e2c6c26705933b395554d0ab9 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 12 Sep 2021 23:46:19 -0700 Subject: 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. --- tests/test-stdint.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/test-stdint.c') 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 -- cgit v1.2.1