>From 2bbce4309739a9b396f6839922f0e34ae757daf6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 6 Sep 2018 14:48:00 +0200 Subject: [PATCH 3/5] count-one-bits tests: Rely on limits-h module. * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition. * modules/count-one-bits-tests (Depends-on): Add 'limits-h'. --- modules/count-one-bits-tests | 1 + tests/test-count-one-bits.c | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/count-one-bits-tests b/modules/count-one-bits-tests index bf0a543..c0432d0 100644 --- a/modules/count-one-bits-tests +++ b/modules/count-one-bits-tests @@ -3,6 +3,7 @@ tests/test-count-one-bits.c tests/macros.h Depends-on: +limits-h configure.ac: diff --git a/tests/test-count-one-bits.c b/tests/test-count-one-bits.c index fef087e..0215e77 100644 --- a/tests/test-count-one-bits.c +++ b/tests/test-count-one-bits.c @@ -29,11 +29,6 @@ #define ULONG_BIT (sizeof (unsigned long int) * CHAR_BIT) #define ULLONG_BIT (sizeof (unsigned long long int) * CHAR_BIT) -#ifndef ULLONG_MAX -# define HALF (1ULL << (sizeof (unsigned long long int) * CHAR_BIT - 1)) -# define ULLONG_MAX (HALF - 1 + HALF) -#endif - int main (int argc, char *argv[]) { -- 2.7.4