[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can't build groff 1.16.1 due to groff header incompatibilities
From: |
Bruce Lilly |
Subject: |
Re: Can't build groff 1.16.1 due to groff header incompatibilities |
Date: |
Wed, 18 Apr 2001 10:15:56 -0400 |
Bruce Lilly wrote:
>
> Werner LEMBERG wrote:
> >
> > > The problem appears to be a conflict between
> > > src/include/getopt.h (ca. line 83)
> > > and
> > > src/include/groff-getopt.h (ca. line 37)
> > > both of which attempt to define a "struct option".
> >
> > This is a known problem, and I'm currently fixing this (badly) by
> > adding a proper compiler ID macro to lib.h, avoiding the inclusion of
> > groff-getopt.h. If you send me this ID, I'll commit it to the CVS.
> >
> > Werner
>
> There are several combinations of preprocessor and compiler under UWIN.
> The default preprocessor predefines __STDPP__, _UWIN, __unix__, and unix
> in addition to _WIN32 and _MSC_VER (the latter two support the compiler,
> and are also defined if the compiler is used as the preprocessor). Of
> course, _WIN32 and _MSC_VER will also be defined if compiling for
> native Windows applications, so they might or might not interfere with
> the Windows version of groff. It is also possible to use compilers
> other than MS VC++ with UWIN, but I'm not sure what would be predefined
> in those cases.
>
> Best regards,
> Bruce Lilly
P.S. I believe that in all cases _STD_INCLUDE_DIR will be defined as
some text string under all combinations of preprocessor/compiler
under UWIN, though the actual string will vary.