At 1:47 PM -0500 8/27/01, Alfred Perlstein wrote:
>* Charles Randall <[EMAIL PROTECTED]> [010827 12:44] wrote:
>> I've noted that several include files in /usr/include use the C preprocessor
>> #warning directive. This isn't standard C and prevents some software from
>> compiling using a compiler like TenDRA. What's the current opinion on this?
>
>My opinion is that #warning should be standardized, however since it's
>not, diffs to surround them with #ifdef __GNU_C__ (or whatever it is)
>will probably be committed.
This may not work.
I know I had some problem with #warn and #warning with some code I was
working on, where some C compilers would only recognize one and other C
compilers would only recognize the other. Some of those compilers
would NOT let you '#ifdef' out the version that it did not recognize
(perhaps thinking that '#warn' or '#warning' might be some gross typo
for '#else' or '#endif', I guess...).
--
Garance Alistair Drosehn = [EMAIL PROTECTED]
Senior Systems Programmer or [EMAIL PROTECTED]
Rensselaer Polytechnic Institute or [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message