|
From: Tatsuro M. <tma...@ya...> - 2009-12-03 11:33:05
|
Hello Petr Thank you for your advise. I am attaching a new patch with advise by Petr. Regards Tatsuro --- Petr Mikulik wrote: > > I have tried to build lua/tikz terminals on DJGPP on cvs source. > > The gcc-4.4.1 on DJGPP seems not to have snprintf. > > > > +#ifdef DJGPP > > + sprintf(last_error_msg, MAX_LINE_LEN, "%s Lua context closed.", msg); > > +#else > > snprintf(last_error_msg, MAX_LINE_LEN, "%s Lua context closed.", msg); > > - > > +#endif > > DJGPP never had snprintf, see config.djg: > > /* Define to 1 if you have the `snprintf' function. */ > /* #undef HAVE_SNPRINTF */ > > > Thus there should be: > > #ifdef HAVE_SNPRINTF > snprintf(...); > #else > sprintf(...); > #endif > > --- > PM > -------------------------------------- Learn more about HIV/AIDS - Red Ribbon Campaign 2009 http://pr.mail.yahoo.co.jp/redribbon/ |