[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] Compile error under mingw runtime 3.2

From: Goodwu
Subject: Re: [h-e-w] Compile error under mingw runtime 3.2
Date: Sat, 18 Oct 2003 23:22:48 +0800

I've found the cause.
In src/s/ms-w32.h, we can find following lines:

#define fileno    _fileno                               //line 356
#include <stdio.h>                                              //line 394

and in stdio.h:

#define _fileno(__F) ((__F)->_file)             //line 382
_CRTIMP int __cdecl fileno (FILE*);             //line 388

Then, line 388 becomes "_CRTIMP int __cdecl ((FILE*)->_file);".
Obviously this is any error.
So, line 382 should after line 388. This is a bug of mingw.
As a workaround, maybe we can move "#define fileno    _fileno" to the behind of 
"#include <stdio.h>".

>The stdio.h marked as revision 1.6 is revision 1.15 in fact. There are no 
>diffrence between this 1.6 and 1.15.
>So, the question remains:
>Is this a bug of stdio.h or a conflict betwean emacs.c and stdio.h?
>So, don't upgrade to mingw runtime 3.2 before this problem is solved.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]