[Libreoffice] BOOL conflict

Michael Meeks michael.meeks at novell.com
Wed Dec 8 02:49:27 PST 2010


Hi Thomas,

On Tue, 2010-12-07 at 10:26 +0100, Thomas Klausner wrote:
> I'm building with external iodbc (3.52.7) and it fails with:
> /usr/pkg/include/iodbcunix.h:136: error: conflicting declaration 'typedef int BOOL'
> .../libreoffice/solver/330/unxbsdx3.pro/inc/tools/solar.h:58: error: 'BOOL' has a previous declaration as 'typedef sal_Bool BOOL'

	Urk; another reason not to use BOOL I guess :-)

	What does your iodbcunix.h include ? I guess we might need to do some
hideous #define magic for the iodbcunix.h headers here: did you get a
solution ?

	I might be tempted to do:

#define BOOL IODBC_BOOL
#include <iodbcunix.h>
#undef BOOL

	or somesuch, if this is the only conflict.

	HTH,

		Michael. 

-- 
 michael.meeks at novell.com  <><, Pseudo Engineer, itinerant idiot




More information about the LibreOffice mailing list