[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] gcc -Wall warning for minmax.h
From: |
Paul Eggert |
Subject: |
Re: [bug-gnulib] gcc -Wall warning for minmax.h |
Date: |
Sun, 15 May 2005 20:27:11 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
Derek Price <address@hidden> writes:
> +#ifdef LIMITS_H_HAS_MINMAX
> +# include <limits.h>
> +#elif SYS_PARAM_H_HAS_MINMAX
> +# include <sys/param.h>
> +#endif
This doesn't work if <limits.h> and <sys/param.h> both define MIN.
> + AC_CHECK_HEADERS_ONCE([sys/param.h],
> + [gl_have_sys_param_h=:], [gl_have_sys_param_h=false])dnl
You don't need to check whether sys/param.h exists. All you
need to do is to see whether the following program compiles:
#include <sys/param.h>
int x = MIN (1, 2);
Similarly for <limits.h>. You shouldn't need to use EGREP_CPP.
- [bug-gnulib] gcc -Wall warning for minmax.h, Derek Price, 2005/05/13
- Re: [bug-gnulib] gcc -Wall warning for minmax.h, Oskar Liljeblad, 2005/05/13
- Re: [bug-gnulib] gcc -Wall warning for minmax.h, Paul Eggert, 2005/05/13
- Re: [bug-gnulib] gcc -Wall warning for minmax.h, Derek Price, 2005/05/17
- Re: [bug-gnulib] gcc -Wall warning for minmax.h,
Paul Eggert <=
- Re: [bug-gnulib] gcc -Wall warning for minmax.h, Derek Price, 2005/05/17
- Re: [bug-gnulib] gcc -Wall warning for minmax.h, Paul Eggert, 2005/05/18
- Re: [bug-gnulib] gcc -Wall warning for minmax.h, Derek Price, 2005/05/18
- Re: [bug-gnulib] gcc -Wall warning for minmax.h, Paul Eggert, 2005/05/18
- [bug-gnulib] Re: gcc -Wall warning for minmax.h, Bruno Haible, 2005/05/23
- [bug-gnulib] Re: gcc -Wall warning for minmax.h, Bruno Haible, 2005/05/23
- [bug-gnulib] Re: gcc -Wall warning for minmax.h, Derek Price, 2005/05/23