From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 67419547 for ; Fri, 6 Nov 2015 22:38:02 -0500 (EST) Received: from [192.168.42.66] (173-228-4-166.dsl.dynamic.fusionbroadband.com [173.228.4.166]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id tA73bued017922 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Fri, 6 Nov 2015 19:37:56 -0800 Content-Type: text/plain; charset=iso-8859-1 X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: mdocml [CVS_2015_11_07] C++ Declaration Guards From: Guy Harris In-Reply-To: <563D700F.9090001@yahoo.com.au> Date: Fri, 6 Nov 2015 19:37:56 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <76A4D614-06C6-4ACE-81A5-F02927D7921E@alum.mit.edu> References: <563D700F.9090001@yahoo.com.au> To: discuss@mdocml.bsd.lv X-Mailer: Apple Mail (2.2104) X-Sonic-CAuth: UmFuZG9tSVZr9eNUiTrujRq+LwkSAV8t7RIOQShy2o8ffqcWgMldqarZqz7kRjGpyLkM7rWcBrWuH3/+PfkdDpGr9fnPzWUr X-Sonic-ID: C;CL437wCF5RGiwL0U9jFv0A== M;PvR/7wCF5RGiwL0U9jFv0A== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd On Nov 6, 2015, at 7:29 PM, Peter Bray wrote: > I'll leave it to the developers and maintainers to choose the > appropriate solution for their code base. Replace __BEGIN_DECLS with #ifdef __cplusplus extern "C" { #endif and replace __END_DECLS with #ifdef __cplusplus } #endif ? Perhaps a bit uglier, but more easily portable, and it makes it a bit = more obvious what's actually being done. (That's the solution used by two code bases I work on - libpcap and = Wireshark.)= -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv