[ros-kernel] redefinition of wint_t Errors

James Tabor jimtabor at adsl-64-217-116-74.dsl.hstntx.swbell.net
Mon Aug 23 14:16:01 CEST 2004


James Tabor wrote:
> James Tabor wrote:
> 
>> More oops,
>>
>> i386-mingw32-gcc -D__USE_W32API -D_MSVCRT_LIB_ -Wall -Werror 
>> -D_DISABLE_TIDENTS -D__USE_W32API -D__REACTOS__ -D_WIN32_IE=0x600 
>> -D_WIN32_WINNT=0x501 -DUSE_MSVCRT_PREFIX -D_MT -I. -I../../include 
>> -I../../w32api/include -pipe -march=i386 -D_M_IX86 -c wine/heap.c -o 
>> wine/heap.o
>> In file included from ../../include/msvcrt/mbstring.h:24,
>>                  from ../../include/msvcrt/stdlib.h:77,
>>                  from ../../include/msvcrt/alloc.h:39,
>>                  from ../../include/msvcrt/malloc.h:35,
>>                  from wine/heap.c:27:
>> ../../include/msvcrt/stddef.h:142: warning: redefinition of `wint_t'
>> /usr/lib/gcc-lib/i386-mingw32/3.3.1/include/stddef.h:361: warning: 
>> `wint_t' previously declared here
>> make[1]: *** [wine/heap.o] Error 1
>> make[1]: Leaving directory `/home/ros/reactos/lib/msvcrt'
>> make: *** [msvcrt] Error 2
>>
>> James
> 
> 
> 
> #ifndef wint_t               <------
> typedef __WINT_TYPE__ wint_t;       |
> #endif                       <---------- add this in the compilers std 
> headers.
> 
Now!

#if defined (__need_wint_t)
#ifndef _WINT_T_		<----
#define _WINT_T_		<----\
#ifndef _WINT_T			      |
#define _WINT_T			      |
       				      |
#ifndef __WINT_TYPE__                 |
#define __WINT_TYPE__ unsigned int    |
#endif				      |
#ifndef wint_t			      |
typedef __WINT_TYPE__ wint_t;	      |
#endif				      |
#endif				      |
#endif				<-----|---- Add this too.
#undef __need_wint_t
#endif

Haxorz,
James


More information about the Ros-kernel mailing list