[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:47:39 +0800 |
It seems that you have found this problem for some while. :-)
>>>>>> 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
>
>