I rephrase the question. Why gcc-4.7.2 build this without problem, but gcc-4.6.3 has error?
2013/1/3 Алексей Павлов <[email protected]> > But with gcc-4.7.2 it build ok without problem. Maybe it gcc bug? > > > 2013/1/3 Kai Tietz <[email protected]> > >> Hi, >> >> 2013/1/2 Алексей Павлов <[email protected]>: >> > Hi! >> > When building nurses-5.9 with latest mingw-w64+gcc-4.6.3 I get error: >> >> that's caused by nurses. It defines sleep as makro, without testing >> if environment needs that. >> We might be able to work-a-round that, anyway I see it as bug in nurses >> venture. >> >> You can try following patch for unistd.h header: >> >> Index: unistd.h >> =================================================================== >> --- unistd.h (Revision 5520) >> +++ unistd.h (Arbeitskopie) >> @@ -29,7 +29,11 @@ >> extern "C" { >> #endif >> >> +#pragma push_macro("sleep") >> +#undef sleep >> unsigned int __cdecl sleep (unsigned int _Duration); >> +#pragma pop_macro("sleep") >> + >> #if !defined __NO_ISOCEXT >> #include <sys/types.h> /* For useconds_t. */ >> >> Regards, >> Kai >> >> >> ------------------------------------------------------------------------------ >> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery >> and much more. Keep your Java skills current with LearnJavaNow - >> 200+ hours of step-by-step video tutorials by Java experts. >> SALE $49.99 this month only -- learn more at: >> http://p.sf.net/sfu/learnmore_122612 >> _______________________________________________ >> Mingw-w64-public mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public >> > >
------------------------------------------------------------------------------ Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much more. Keep your Java skills current with LearnJavaNow - 200+ hours of step-by-step video tutorials by Java experts. SALE $49.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122612
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
