delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/05/26/21:06:34

Mime-Version: 1.0
To: dj AT delorie DOT com
From: Nate Eldredge <nate AT cartsys DOT com>
Subject: <sys/dxe.h> not C++ clean
Cc: djgpp-workers AT delorie DOT com
Date: Tue, 26 May 1998 18:00:55 -0700
Message-ID: <19980527010023.AAM19094@ppp114.cartsys.com>

--=====================_896231035==_
Content-Type: text/plain; charset="us-ascii"

DXE's break for C++ programs due to <sys/dxe.h> not having the extern "C"
stuff. Patch:

--=====================_896231035==_
Content-Type: text/plain; charset="us-ascii"

*** include/sys/dxe.h~	Sat Apr 22 05:37:00 1995
--- include/sys/dxe.h	Tue May 26 17:38:48 1998
***************
*** 13,16 ****
--- 13,24 ----
  
  /* data stored after dxe_header in file; then relocs, 4 bytes each */
  
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+ 
  void *_dxe_load(char *filename);
+ 
+ #ifdef __cplusplus
+ }
+ #endif
*** src/docs/kb/wc202.tx~	Fri Jan  2 06:07:24 1998
--- src/docs/kb/wc202.txi	Tue May 26 17:42:12 1998
***************
*** 279,281 ****
--- 279,283 ----
  @code{malloc} and @code{free} have been replaced by a more efficient
  (and not BSD) algorithm.  The source archive still contains bsdmallo.c
  and a new even faster (but more wasteful) version in fmalloc.c
+ 
+ The header @file{sys/dxe.h} now works with C++.

--=====================_896231035==_
Content-Type: text/plain; charset="us-ascii"


Nate Eldredge
nate AT cartsys DOT com



--=====================_896231035==_--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019