From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: questions about bcd and c++ Date: 8 May 2000 12:46:42 GMT Organization: Aachen University of Technology (RWTH) Lines: 28 Distribution: world Message-ID: <8f6cvi$cr8$1@nets3.rz.RWTH-Aachen.DE> References: <8epjp2$jbp$1 AT nnrp02 DOT primenet DOT com> <8epn4g$k1i$1 AT nnrp02 DOT primenet DOT com> <391063d2 DOT 38568953 AT news DOT freeserve DOT net> <8eprlt$k97$1 AT nnrp03 DOT primenet DOT com> <8a96hscqfqik9t7n7lgqqindik5ctl59d4 AT 4ax DOT com> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 957790002 13160 137.226.32.75 (8 May 2000 12:46:42 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 8 May 2000 12:46:42 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Damian Yerrick wrote: > #ifdef __cplusplus > #define EXTERN_C extern "C" > #else > #define EXTERN_C > #endif > Then prefix all function prototypes with EXTERN_C and send the new > header file back to the maintainer. Heavily over-complicated. A simple method is the one implemented by all the DJGPP libc headers. At the beginning of the file, add: #ifdef __cplusplus extern "C" { #endif and at the end: #ifdef __cplusplus } #endif -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.