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


> From: Richard Henderson [mailto:rth@redhat.com]
> Sent: Tuesday, April 02, 2002 4:09 PM

> > #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?

No.  The pragma will not be "executed" because 'stat' is defined (because '__DECC' is not defined).  A fixincludes will be required.

Mike


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