This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems with <tgmath.h>


>>>>> Franz Sirl writes:

Franz> At 14:11 16.12.99 , Andreas Schwab wrote:
>> Kaoru Fukui <k_fukui@highway.ne.jp> writes:
>> 
>> |> -------------------trunc.c-----------------
>> |> #include <>
>> |> #include <>
>> |> #include <>
>> |>
>> |> #define __ISOC9X_SOURCE
>> 
>> It's called _ISOC9X_SOURCE, and you must define it as the very first
>> thing, before including any system header.  If in doubt, compile with
>> -Wall.

Franz> BTW, is it possible to prevent the user from defining internal macros like 
Franz> __USE_MISC? From time to time I get broken patches defining these directly.

<features.h> does already:
/* Undefine everything, so we get a clean slate.  */
#undef  __USE_ISOC9X
[...]
#undef  __USE_MISC

Therefore defining __USE_MISC is just useless.

We could do:
#ifdef __USE_MISC
# error "__USE_MISC is an internal macro - don't define it."
# #undef __USE_MISC
#endif

But I don't think we should educate the users even more;-).

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]