Commit 934cde54 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

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>.
parent 09f37155
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:
......
......@@ -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/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment