Commit 0a8e15ab authored by Steven Edwards's avatar Steven Edwards Committed by Alexandre Julliard

Detect snprintf && _snprintf, use _snprintf on stupid platforms

(windows).
parent 8dc3a513
......@@ -10288,11 +10288,14 @@ fi
for ac_func in \
__libc_fork \
_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>
......
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