Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4JH8IA94357 for ; Sat, 19 May 2001 13:08:19 -0400 (EDT) (envelope-from mscott@sacadia.com) Received: from sacadia.com ([64.167.151.36]) by mta7.pltn13.pbi.net (Sun Internet Mail Server sims.3.5.2000.03.23.18.03.p10) with ESMTP id <0GDL00KPLE96X1@mta7.pltn13.pbi.net> for pgsql-hackers@postgresql.org; Sat, 19 May 2001 10:07:56 -0700 (PDT) Date: Sat, 19 May 2001 10:09:59 -0700 From: Myron Scott Subject: Re: C++ Headers To: Hackers List Reply-to: mscott@sacadia.com Message-id: <3B06A8E7.EA776382@sacadia.com> Organization: Sacadia Corporation MIME-version: 1.0 X-Mailer: Mozilla 4.73 [en] (X11; U; SunOS 5.8 sun4u) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en References: <3B068167.2C761ED6@mohawksoft.com> <215.990285989@sss.pgh.pa.us> X-Archive-Number: 200105/800 X-Sequence-Number: 9052 Tom Lane wrote: > mlw writes: > > Is any support for reworking the postgres headers such that they can be used, > > cleanly, in a C++ program? > > You'll get no support for a request for a blank check. What do you have > in mind exactly? > > ISTM that making the backend's internal headers C++-clean has already > been looked into, but rejected on grounds that I don't recall clearly. > Check the list archives. > I have used: #ifdef __cplusplus extern "C" { #endif headers...... #ifdef __cplusplus } #endif on many backend header files for use on my threaded version of postgres. I seems to work fine as I have not had any problems yet. Myron Scott