[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] gawk 4.0.0 compile error when sigsegv is enabled (mingw32
From: |
Eli Zaretskii |
Subject: |
Re: [bug-gawk] gawk 4.0.0 compile error when sigsegv is enabled (mingw32) |
Date: |
Mon, 25 Jul 2011 00:50:56 -0400 |
> Date: Sun, 24 Jul 2011 15:41:43 -0700 (PDT)
> From: address@hidden
> Cc: address@hidden
>
> int lj, alt, big, bigbig, char, have_prec, need_format;
The original line was this:
int lj, alt, big, bigbig, small, have_prec, need_format;
So it is clear that `small' got #define'd to `char', and that is what
confuses the compiler. All the compilation errors you see are the
consequence of this snafu.
I'm quite sure that this #define comes from windows.h (included by
sigsegv.h) or from one of the headers included by windows.h.
The solution is to put this:
#ifdef small
#undef small
#endif
right after #include <sigsegv.h>.
A better solution would be for builtin.c to rename this variable into
something less general.
[bug-gawk] gawk 4.0.0 compile error when sigsegv is enabled (mingw32), Allan J Mui, 2011/07/26