This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: V3 PATCH: #undef some C99 math macros in <cmath>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Subject: Re: V3 PATCH: #undef some C99 math macros in <cmath>
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
- Date: 06 Apr 2001 06:33:16 +0200
- Cc: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>, Ulrich Drepper <drepper at cygnus dot com>, gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Organization: CMLA, ENS Cachan -- CNRS UMR 8536 (France)
- References: <Pine.SOL.3.91.1010405193417.28675G-100000@cse.cygnus.com>
Benjamin Kosnik <bkoz@redhat.com> writes:
| > | > > + #undef isgreater
| > | > > + #undef isgreaterequal
| > | > > + #undef isless
| > | > > + #undef islessequal
| > | > > + #undef islessgreater
| > | > > + #undef isunordered
| > | >
| > | > in the short term, this is acceptable.
| > |
| > | This is what you always will have to do. C99 demands that these are
| > | macros. You'll replace them with template functions after undefining
| > | the macros. There is not more correct way.
|
| Ok. I stand corrected.
|
| I didn't mean _USE_GNU, I meant this:
|
| #define _GNU_SOURCE 1
|
| this is unconditionally defined in config/os/gnu-linux/bits/os_defines.h
I understand. But isn't that a linux-centric solution?
-- Gaby