Error when building mingw-runtime from source distribution
"Igor Georgiev" <gory-bb0uNzUamraRdCr/[email protected]>
| Newsgroups | gmane.comp.gnu.mingw.patches |
|---|---|
| Organization | Alpha Soft Ltd. |
| Message-ID | <[email protected]> |
when building mingw-runtime from source distribution #------------------------------------------------------------------------- In file included from crt1.c:29: include/stdlib.h:153: syntax error before "int" In file included from crt1.c:33: Actualy it's here stdlib.h missing ";" in lines 138 & 140 135 #else /* ! __DECLSPEC_SUPPORTED */ 136 # ifdef __MSVCRT__ 137 extern int* _imp____mbcur_max; 138 # define MB_CUR_MAX (*_imp____mb_cur_max) 139 # else /* not __MSVCRT */ 140 extern int* _imp____mbcur_max_dll; 141 # define MB_CUR_MAX (*_imp____mb_cur_max_dll) 142 # endif /* not __MSVCRT */ 143 #endif /* __DECLSPEC_SUPPORTED */ 144 #endif /* MB_CUR_MAX */ #-- patch here ----------------------------------------------------------- --- stdlib.h.old Sat Nov 9 13:45:39 2002 +++ stdlib.h Sat Nov 9 14:33:50 2002 @@ -134,10 +134,10 @@ __MINGW_IMPORT char** __argv_dll; #else /* ! __DECLSPEC_SUPPORTED */ # ifdef __MSVCRT__ - extern int* _imp____mbcur_max + extern int* _imp____mbcur_max; # define MB_CUR_MAX (*_imp____mb_cur_max) # else /* not __MSVCRT */ - extern int* _imp____mbcur_max_dll + extern int* _imp____mbcur_max_dll; # define MB_CUR_MAX (*_imp____mb_cur_max_dll) # endif /* not __MSVCRT */ #endif /* __DECLSPEC_SUPPORTED */ #------------------------------------------------------------------------- or just take stdlib.h from binary distro