This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: RFC: Mirror system header exposure in libstdc++-v3's headers
- From: Phil Edwards <phil at jaj dot com>
- To: rittle at labs dot mot dot com
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 7 Apr 2003 11:39:25 -0400
- Subject: Re: RFC: Mirror system header exposure in libstdc++-v3's headers
- References: <200304050358.h353wSls047402@latour.rsch.comm.mot.com>
On Fri, Apr 04, 2003 at 09:58:28PM -0600, Loren James Rittle wrote:
>
> Here is an example set of hooks to be dropped into an os_defines.h file:
>
> #define _GLIBCPP_USE_C99_EXPOSURE_HOOK (__ISO_C_VISIBLE >= 1999)
> #define _GLIBCPP_USE_LONG_LONG_EXPOSURE_HOOK (defined (__LONG_LONG_SUPPORTED))
Personally, I like it. Very extensible.
> #if _GLIBCPP_USE_C99
> + #if !defined (_GLIBCPP_USE_C99_EXPOSURE_HOOK) || _GLIBCPP_USE_C99_EXPOSURE_HOOK
> using std::fpclassify;
> using std::isfinite;
> using std::isinf;
> ***************
> *** 69,74 ****
> --- 70,76 ----
> using std::islessequal;
> using std::islessgreater;
> using std::isunordered;
> + #endif
> #endif
If the number of lines between #if and #endif is not small, and we have
nested if's like this, I really like having
#endif /* some kind of note */
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams