From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c818447ef81c263f X-Google-Attributes: gidfee84,public From: Kevin Jacobs Subject: Re: [Help]gcc ignored #pragma pack on DEC/OSF1 4.0B Date: 1998/01/06 Message-ID: <68teqc$rc1$1@alexander.INS.CWRU.Edu>#1/1 X-Deja-AN: 313296794 References: <689ng7$ja2@news.seed.net.tw> <34A918FF.EE41F28F@zk3.dec.com> <6c1zytk51r.fsf@dextrose.atria.com> <34B112CE.6F59@zk3.dec.com> <68shad$195@dogbert.cc.ndsu.NoDak.edu> Organization: Case Western Reserve University, Cleveland OH (USA) Newsgroups: comp.unix.osf.osf1 Tim Mooney 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 ----------------------------------------------------------------------------