libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: use of __STDC__ in libtool.m4 on HEAD


From: Gary V. Vaughan
Subject: Re: use of __STDC__ in libtool.m4 on HEAD
Date: Sat, 22 Sep 2001 10:40:48 +0100
User-agent: Mutt/1.3.22.1i

On Wed, Sep 19, 2001 at 10:43:26PM -0500, address@hidden 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__/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]