From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from nm20.bullet.mail.bf1.yahoo.com (nm20.bullet.mail.bf1.yahoo.com [98.139.212.179]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 9071e721 for ; Fri, 6 Nov 2015 22:29:22 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1446866961; bh=Ty/jV5KTREAj64OPwtERywnW8KQjf06Nc/IvORWVU8g=; h=Date:From:To:Subject:From:Subject; b=TvPt8fXeDX1Odu8VzDmBC5xLENSlzjIyRWHI9+eMPB+Jxk3NUl0XBBJl4zhtbfI19JvhcQXnyPXZMNRz3PBBE8kX9hNiazklY4pSEWba8QMDz+INTtl5iC2YHIXGGNUCgtVn+ALJwUppAopWaLvrlsFUfZiVQQGID9kLhxLkis+j/ekSC16fW+7MNEcUUSeT7JFJi+hXStO3FBteDQ/IuMpDEMPrSdJ1gcK+JVNzZ4DpTvn2NYJUCXsEkeC/lNPYe2pkS5ibEm3y84eTq9SS8n1/0w7B4aWbN3XMmN6IqqQiYexmoE37p/DdrzYGHpIVZhhCkd3s/0fQCdEC4Q/BBg== Received: from [98.139.215.142] by nm20.bullet.mail.bf1.yahoo.com with NNFMP; 07 Nov 2015 03:29:21 -0000 Received: from [98.139.211.196] by tm13.bullet.mail.bf1.yahoo.com with NNFMP; 07 Nov 2015 03:29:21 -0000 Received: from [127.0.0.1] by smtp205.mail.bf1.yahoo.com with NNFMP; 07 Nov 2015 03:29:21 -0000 X-Yahoo-Newman-Id: 647160.65543.bm@smtp205.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: HOT7HyEVM1l284iJ7j89aMrlXSNyyQltjI8InuZloXuTtOh xajc6FGaHXZd_v_KP4PKLN6jNLKrOc_G6rR2v5lkKKt5ToKJZqctBQ64vuwB sq8jlQxwubnACiUZ3NkDS3H5sWmzYMtV_PWpoD7YKhM.EgFr0lO5UyDYXWok UC4Yi0wOkn9xYa0Efd82J8gIRuErvqYJtgmqH8m8Hkm4FJXEuY0wrBNyKytV 7bcfhBeJgo5FRob0co0PC4tMsqaZsyBkAvAWdyzHUISnBClLeAqb6BxBZTWp geuvURiJsmry3WsqpgfTuwax69tNcAKKtnCTA._RXvMoXMvBCepFtRnV9enl Woqp6uN1uDRpJBq0v_zr0pshsCyBA.GL7BV5fgQtL3AbSqdHC36VJq8ocvu5 miYbEgBMtXwvTXwCzOkecUbhO90CyzYeCwXrqtlu18vME2O7k8GRxOsm5QaM qe4.za06H6Wfs.s391tRJMlvbktLAeuX7ZtJn.WmHBg0bW1efagUUx9LWi7B GYKs4l6W4J6sG13IoYoAc_mAl4gxgbGA- X-Yahoo-SMTP: wy_7AdSswBBaijFlmVnVzTL.0g-- Message-ID: <563D700F.9090001@yahoo.com.au> Date: Sat, 07 Nov 2015 14:29:19 +1100 From: Peter Bray User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 To: discuss@mdocml.bsd.lv Subject: mdocml [CVS_2015_11_07] C++ Declaration Guards Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Greetings, Many of the header files in the mdocml project use the cpp(1) macros '__BEGIN_DECLS' && '__END_DECLS', which IMHO is "A Good Thing(TM)". But neither Solaris 10 or 11.2 define these macros in any standard header files, so the project has to provide them. Currently, this is done by generating the appropriate code into 'config.h'. This is not sufficient to allow the code to compile on Solaris 10. To progress the build, the files 'mandoc.h' and 'mandoc_aux.h' can be edited to include the line '#include "config.h"'. And the build will proceed. Unfortunately, this is not a desirable solution, as these header files get installed via 'make install'. So the correct solution will probably involve having these definitions moved from 'config.h' to an installed header file. If users of the library will always load a common header file, than the declaration could go there. But the project's own code, requires that at least two files be edited to allow the build to proceed (as mentioned above). Alternatively, maybe a generated header, say mandoc_compat.h could be generated by the configure scripts and all the (installed) header files using '__BEGIN_DECLS' && '__END_DECLS', could '#include"mandoc_compat.h", as an example. I'll leave it to the developers and maintainers to choose the appropriate solution for their code base. Regards, Peter Bray Sydney, Australia -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv