Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Kevin Jacobs <jacobs@darwin.cwru.edu>
Subject: Re: [Help]gcc ignored #pragma pack on DEC/OSF1 4.0B
Date: 1998/01/06	[thread overview]
Message-ID: <68teqc$rc1$1@alexander.INS.CWRU.Edu> (raw)
In-Reply-To: 68shad$195@dogbert.cc.ndsu.NoDak.edu


Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu> wrote:
> While we're talking about the compiler...  :-)

Since we are talking about the compiler, whats the chance that pthread.h
will finally work under C++?  Or am I asking too much.  Also, wonderful code
like this (taken from time.h, please excuse my posting it to Usenet, but
there is nothing secret about wrong code):

#ifdef  __DECC
#pragma extern_prefix "_P"
#else
#define localtime_r(__a,__b)    _Plocaltime_r(__a,__b)
#endif  /* __DECC */
extern struct tm *localtime_r __((const time_t *, struct tm *));

Just tell me how the compiler is supposed to get this one right in
C++ without adding my own prototype?!  (in that case, why even bother with
these pesky include files)

Arg.  Does anyone even test this stuff?

-Kevin


-- 
----------->  Kevin Jacobs  <-----------|------->  (216) 778-8487  <-------- 
S.A.G.E. Project Technical Coordinator  | Department of Epidemiology
  & System Administrator                |   & Biostatistics    
Internet E-mail: jacobs@darwin.cwru.edu | Case Western Reserve University
----------------------------------------------------------------------------



  reply	other threads:[~1998-01-06  5:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-30  5:00 [Help]gcc ignored #pragma pack on DEC/OSF1 4.0B Ming-Yen Hsu
1997-12-30  5:00 ` Jeff Sullivan
1997-12-31  5:00   ` John Kohl
1998-01-05  5:00     ` Joe Mario
1998-01-06  5:00       ` Tim Mooney
1998-01-06  5:00         ` Kevin Jacobs [this message]
1998-01-08  5:00           ` Jeff Sullivan
1998-01-08  5:00         ` Jeff Sullivan
1998-01-13  5:00         ` Jeff Sullivan
1998-01-16  5:00           ` Tim Mooney
1998-01-05  5:00     ` Jeff Sullivan
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox