bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] Re: gcc -Wall warning for minmax.h


From: James Youngman
Subject: Re: [bug-gnulib] Re: gcc -Wall warning for minmax.h
Date: Fri, 3 Jun 2005 13:33:38 +0100
User-agent: Mutt/1.3.28i

On Fri, Jun 03, 2005 at 01:54:01PM +0200, Stepan Kasal wrote:

> +    gl_CACHE_VAR,
> +    [AC_COMPILE_IFELSE([#include <$1>
> +                     int x = MIN (42, 17);],
> +       [gl_CACHE_VAR=yes],
> +       [gl_CACHE_VAR=no])])
> +  if test $gl_CACHE_VAR = yes; then
> +    AC_DEFINE([HAVE_MINMAX_IN_]AS_TR_CPP([$1]), 1,
>        [Define to 1 if <$1> defines the MIN and MAX macros.])
>    fi

Apologies for stating the obvious, but contrary to this description,
HAVE_MINMAX_IN_FOO_H is defined if MIN is defined in foo.h and MAX is
not.  Strictly speaking, we should change either the macro or the
description.

Regards,
James.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]