Fix compilation warnings about snprintf in the MSDOS build.

msdos/sed2v2.inp [DJGPP <= 2.03]: Add a prototype for snprintf, to
 avoid compilation warning from newer GCC versions that have
 snprintf as a built-in.  Reported by Juan Manuel Guerrero
 <juan.guerrero@gmx.de>.
This commit is contained in:
Eli Zaretskii 2014-08-23 11:22:46 +03:00
parent 09f3715543
commit 934cde5459
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2014-08-23 Eli Zaretskii <eliz@gnu.org>
* sed2v2.inp [DJGPP <= 2.03]: Add a prototype for snprintf, to
avoid compilation warning from newer GCC versions that have
snprintf as a built-in. Reported by Juan Manuel Guerrero
<juan.guerrero@gmx.de>.
2014-04-16 Eli Zaretskii <eliz@gnu.org>
* sedlisp.inp:

View file

@ -131,6 +131,8 @@ s/^#undef HAVE_STRTOULL *$/#define HAVE_STRTOULL 1/
#define HAVE_SNPRINTF 1\
#else\
#undef HAVE_SNPRINTF\
#include <sys/types.h>\
extern int snprintf (char *__restrict, size_t, const char *__restrict, ...);\
#endif
s/^#undef PENDING_OUTPUT_N_BYTES *$/#define PENDING_OUTPUT_N_BYTES fp->_ptr - fp->_base/