This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA] Major debugging breakage
On Fri, Jan 11, 2002 at 10:58:21PM -0500, Christopher Faylor wrote:
> On Thu, Jan 10, 2002 at 02:26:08PM -0800, Zack Weinberg wrote:
> >On Thu, Jan 10, 2002 at 05:08:20PM -0500, Christopher Faylor wrote:
> >>
> >> Ok. We've admitted defeat on this one. Windows 9x wins. Sigh.
> >>
> >> So we have to turn off this feature for all Windows platforms since it
> >> is possible that a gcc built on Windows NT (where mmap works fine) will
> >> be run on Windows 98 (where it doesn't).
> >
> >Isn't there a way to determine at run time which version of Windows we
> >are executing under?
>
> Looking at the code again, I think it would be possible to do something
> that would be minimally intrusive if you don't mind an
>
> #ifdef _WIN32
> #include <windows.h>
> #endif
>
> in that file.
>
> I guess I didn't do it originally because it was basically an admission
> of defeat. :-)
Yeah, that would be fine. Please try to do it by defining some sort of
macro to perform the test at the top of the file, then using it below.
zw