1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

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'.
This commit is contained in:
Bruno Haible
2018-09-06 14:48:00 +02:00
parent c4b2df3e3a
commit 2bbce43097
2 changed files with 1 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ tests/test-count-one-bits.c
tests/macros.h
Depends-on:
limits-h
configure.ac:

View File

@@ -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[])
{