|
From: Petr M. <mi...@ph...> - 2009-12-03 11:35:24
|
> 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
|