This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c/6126: Tru64 5.1 doesn't expose stat(2) as a function


On Tue, Apr 02, 2002 at 04:01:30PM -0600, Coleman, Michael wrote:
> This almost works, but not quite.  The structure of stat.h is
> something like this
> 
> #if defined(__DECC)
>   #define __EXTERN_PREFIX
> #else
>   #if !defined(stat)
>     define stat(...) ...
>   #endif
> #endif
> 
> #if !defined(stat) && defined(__EXTERN_PREFIX)
>   #pragma extern_prefix "_F64_"
> #endif
> extern int stat ...

Yes, but we define __EXTERN_PREFIX ourselves in gcc.
So the question still stands: does it all work?


r~


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