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