help-emacs-windows
[Top][All Lists]
Advanced

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

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


From: MIYOSHI Masanori
Subject: Re: [h-e-w] Compile error under mingw runtime 3.2
Date: Sat, 18 Oct 2003 23:59:04 +0900
User-agent: Wanderlust/2.11.19 (Wonderwall) EMIKO/1.14.1 (Choanoflagellata) LIMIT/1.14.7 (Fujiidera) APEL/10.5 Emacs/21.1 (i386-msvc-nt5.1.2600) MULE/5.0 (SAKAKI) Meadow/2.00 Beta2-dev (WOMINAHESHI)

>>>>> In <address@hidden> 
>>>>>   "Goodwu" <address@hidden> wrote:
Goodwu> Is this a bug of stdio.h or a conflict betwean emacs.c and stdio.h?

Yes, there is a conflict between s/ms-w32.h and stdio.h of
mingw-runtime 3.2.

The following causes the conflict.

s/ms-w32.h:
> #define fileno          _fileno

stdio.h:
> #define _fileno(__F) ((__F)->_file)
snip
> _CRTIMP int __cdecl   fileno (FILE*);

It is an easy way to solve the conflict to undefine `fileno' in
s/ms-w32.h.


And also there is a bug in mingw-runtime 3.2, which makes it
difficult to build NTEmacs.  Some inline functions, such as
getc(), return wrong values.

Please refer to the next URL.
http://sourceforge.net/mailarchive/forum.php?thread_id=3307835&forum_id=5119

To avoid this, the following definition is required in
s/ms-w32.h.

> #define _MT

--
MIYOSHI Masanori mailto:address@hidden




reply via email to

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