On Wed, Sep 19, 2001 at 10:43:26PM -0500, [EMAIL PROTECTED] wrote:
> >From libtool.m4 in HEAD branch:
>
> #if defined (__STDC__) && __STDC__
> # define lt_ptr_t void *
> #else
> # define lt_ptr_t char *
> # define const
> #endif
>
> Why? Some C compilers define __STDC__ but don't define it to 1. How
> about:
> #ifdef __STDC__
I believe there are compilers out there that define __STDC__ to 0
for strict K&R mode and to 1 for strict ANSI mode. If memory srves,
OSF compilers used to this -- at least in the 3.2 series...
How about:
#if defined (__STDC__) && !__STDC__
??
Cheers,
Gary.
--
())_. Gary V. Vaughan gary@(oranda.demon.co.uk|gnu.org)
( '/ Research Scientist http://www.oranda.demon.co.uk ,_())____
/ )= GNU Hacker http://www.gnu.org/software/libtool \' `&
`(_~)_ Tech' Author http://sources.redhat.com/autobook =`---d__/
_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool