Remove checks for [v]snprintf() and vsscanf() declarations
Consider that all still supported/existing platforms provide these declarations, if they provide these functions at all (and they probably all do, so we almost certainly could remove all the test for them, but keep them for now). Note that we still test for broken declarations as this might still be useful on HP-UX 11 systems, where this problem was reported "only" 8 years ago. By not using AC_CHECK_FUNCS() we avoid the problem when using it with snprintf() when cross-compiling with the latest MinGW API headers, see https://sourceforge.net/p/mingw-w64/bugs/935/ for more details. This commit is best viewed ignoring whitespace-only changes.
This commit is contained in:
parent
d63b0c2cf9
commit
7b0d77e0c0
7 changed files with 97 additions and 346 deletions
15
setup.h_vms
15
setup.h_vms
|
|
@ -1076,15 +1076,9 @@ typedef pid_t GPid;
|
|||
#if __CRTL_VER >= 70312000
|
||||
/* Define if you have snprintf() */
|
||||
#define HAVE_SNPRINTF 1
|
||||
|
||||
/* Define if you have snprintf() declaration in the header */
|
||||
#define HAVE_SNPRINTF_DECL 1
|
||||
#else
|
||||
/* Define if you have snprintf() */
|
||||
#undef HAVE_SNPRINTF
|
||||
|
||||
/* Define if you have snprintf() declaration in the header */
|
||||
#undef HAVE_SNPRINTF_DECL
|
||||
#endif
|
||||
|
||||
/* Define if you have a snprintf() which supports positional arguments
|
||||
|
|
@ -1109,15 +1103,9 @@ typedef pid_t GPid;
|
|||
#if __CRTL_VER >= 70312000
|
||||
/* Define if you have vsnprintf() */
|
||||
#define HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define if you have vsnprintf() declaration in the header */
|
||||
#define HAVE_VSNPRINTF_DECL 1
|
||||
#else
|
||||
/* Define if you have vsnprintf() */
|
||||
#undef HAVE_VSNPRINTF
|
||||
|
||||
/* Define if you have vsnprintf() declaration in the header */
|
||||
#undef HAVE_VSNPRINTF_DECL
|
||||
#endif
|
||||
|
||||
/* Define if you have a _broken_ vsnprintf() declaration in the header,
|
||||
|
|
@ -1131,9 +1119,6 @@ typedef pid_t GPid;
|
|||
/* Define if you have vsscanf() */
|
||||
#define HAVE_VSSCANF 1
|
||||
|
||||
/* Define if you have vsscanf() declaration in the header */
|
||||
#define HAVE_VSSCANF_DECL 1
|
||||
|
||||
/* Define if you have usleep() */
|
||||
#define HAVE_USLEEP 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue