Detect snprintf && _snprintf, use _snprintf on stupid platforms
(windows).
This commit is contained in:
parent
8dc3a51329
commit
0a8e15abfb
|
@ -10285,6 +10285,8 @@ fi
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -10293,6 +10295,7 @@ for ac_func in \
|
|||
_lwp_create \
|
||||
_pclose \
|
||||
_popen \
|
||||
_snprintf \
|
||||
_stricmp \
|
||||
_strnicmp \
|
||||
chsize \
|
||||
|
@ -10323,6 +10326,7 @@ for ac_func in \
|
|||
sendmsg \
|
||||
settimeofday \
|
||||
sigaltstack \
|
||||
snprintf \
|
||||
statfs \
|
||||
strcasecmp \
|
||||
strerror \
|
||||
|
|
|
@ -857,6 +857,7 @@ AC_CHECK_FUNCS(\
|
|||
_lwp_create \
|
||||
_pclose \
|
||||
_popen \
|
||||
_snprintf \
|
||||
_stricmp \
|
||||
_strnicmp \
|
||||
chsize \
|
||||
|
@ -887,6 +888,7 @@ AC_CHECK_FUNCS(\
|
|||
sendmsg \
|
||||
settimeofday \
|
||||
sigaltstack \
|
||||
snprintf \
|
||||
statfs \
|
||||
strcasecmp \
|
||||
strerror \
|
||||
|
|
|
@ -380,6 +380,9 @@
|
|||
/* Define to 1 if the system has the type `size_t'. */
|
||||
#undef HAVE_SIZE_T
|
||||
|
||||
/* Define to 1 if you have the `snprintf' function. */
|
||||
#undef HAVE_SNPRINTF
|
||||
|
||||
/* Define if struct sockaddr contains sa_len */
|
||||
#undef HAVE_SOCKADDR_SA_LEN
|
||||
|
||||
|
@ -584,6 +587,9 @@
|
|||
/* Define to 1 if you have the `_popen' function. */
|
||||
#undef HAVE__POPEN
|
||||
|
||||
/* Define to 1 if you have the `_snprintf' function. */
|
||||
#undef HAVE__SNPRINTF
|
||||
|
||||
/* Define to 1 if you have the `_stricmp' function. */
|
||||
#undef HAVE__STRICMP
|
||||
|
||||
|
|
|
@ -116,6 +116,10 @@ struct statfs;
|
|||
#define pclose _pclose
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_SNPRINTF) && defined(HAVE__SNPRINTF)
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
#ifndef S_ISLNK
|
||||
# define S_ISLNK(mod) (0)
|
||||
#endif /* S_ISLNK */
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
|
||||
%{
|
||||
#include "config.h"
|
||||
#include "wine/port.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
Loading…
Reference in New Issue