[40] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

minor bug in pthreads compilation

daemon@ATHENA.MIT.EDU (Greg Lavender)
Mon Jul 10 18:47:23 1995

To: pthreads@MIT.EDU
Cc: g.lavender@isode.com
Date: Mon, 10 Jul 1995 17:22:51 -0500
From: Greg Lavender <G.Lavender@isode.com>

Hi,

I'm using MIT pthreads 1_60_beta3 with a C++ application and found a
small problem compiling using one of the installed include files with
a compiler other than g++. Attached is a context diff for a fix to the
<pthread/sys/cdefs.h> file, which will define the appropriate macros for
use with a C++ compiler other than g++ (e.g., SparcWorks C++ 4.0.1).

Cheers.

greg
----
Greg Lavender <g.lavender@isode.com>
Research Manager
ISODE Consortium Inc.
3925 West Braker Lane, Suite 333
Austin, TX 78759
Tel: +1.512.305.0280 
Fax: +1.512.305.0285
http://www.isode.com/


*** cdefs.h.orig	Mon Jul 10 17:12:42 1995
--- cdefs.h	Mon Jul 10 17:13:33 1995
***************
*** 33,41 ****
--- 33,47 ----
  #endif
  #endif
  #else /* !__GNUC__ */
+ #if defined(__cplusplus)
+ #define __BEGIN_DECLS   extern "C" {
+ #define __END_DECLS     };
+ #define __P(protos)     protos
+ #else
  #define __BEGIN_DECLS
  #define __END_DECLS
  #define	__INLINE		static 
+ #endif
  #endif
  
  #ifndef __NORETURN

home help back first fref pref prev next nref lref last post