Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


On Thu, Oct 21, 2010 at 3:52 PM, Thomas Klausner <wiz@netbsd.org> wrote:
Hi!

Entering /disk/2/archive/libreoffice/build/libreoffice-3.2.99.2/connectivity/source/drivers/adabas

Compiling: connectivity/unxbsdx3.pro/misc/adabas_dflt_version.c
Compiling: connectivity/source/drivers/adabas/BDriver.cxx
/usr/pkg/include/iodbcunix.h:136: error: conflicting declaration 'typedef int BOOL'
/disk/2/archive/libreoffice/build/libreoffice-3.2.99.2/solver/330/unxbsdx3.pro/inc/tools/solar.h:57:
 error: 'BOOL' has a previous declaration as 'typedef sal_Bool BOOL'
dmake:  Error code 1, while making '../../../unxbsdx3.pro/slo/BDriver.obj'

Lines 135-137 of iodbcunix.h:
#if !defined(BOOL) && !defined(_OBJC_OBJC_H_)
typedef int                     BOOL;
#endif

Line 57 of solar.h is:
typedef sal_Bool                BOOL;   /* typedef unsigned char   BOOL; */

Suggestions?

Completely untested but:

in BDriver.cxx, move
#include "odbc/OFunction.hh" and odbc/OTools.hxx to the end of the
include list, and just before them add #undef BOOL. see if that help
(the more permanent solution is to convert BOOL to sal_Bool and remove
the definition into solar.h.. that is in the 'easy hack' todo list...
but it is quite a big 'easy' task

Norbert


 Thomas
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.