configure: Add check for presence of _strdup() and strdup().

This commit is contained in:
Bang Jun-young 2007-10-15 17:09:12 +09:00 committed by Alexandre Julliard
parent 119e4d4955
commit ff96bd6aec
4 changed files with 16 additions and 0 deletions

4
configure vendored
View File

@ -15700,6 +15700,8 @@ esac
@ -15708,6 +15710,7 @@ for ac_func in \
_popen \ _popen \
_snprintf \ _snprintf \
_spawnvp \ _spawnvp \
_strdup \
_stricmp \ _stricmp \
_strnicmp \ _strnicmp \
_vsnprintf \ _vsnprintf \
@ -15756,6 +15759,7 @@ for ac_func in \
statfs \ statfs \
statvfs \ statvfs \
strcasecmp \ strcasecmp \
strdup \
strerror \ strerror \
strncasecmp \ strncasecmp \
strtold \ strtold \

View File

@ -1227,6 +1227,7 @@ AC_CHECK_FUNCS(\
_popen \ _popen \
_snprintf \ _snprintf \
_spawnvp \ _spawnvp \
_strdup \
_stricmp \ _stricmp \
_strnicmp \ _strnicmp \
_vsnprintf \ _vsnprintf \
@ -1275,6 +1276,7 @@ AC_CHECK_FUNCS(\
statfs \ statfs \
statvfs \ statvfs \
strcasecmp \ strcasecmp \
strdup \
strerror \ strerror \
strncasecmp \ strncasecmp \
strtold \ strtold \

View File

@ -633,6 +633,9 @@
/* Define to 1 if you have the `strcasecmp' function. */ /* Define to 1 if you have the `strcasecmp' function. */
#undef HAVE_STRCASECMP #undef HAVE_STRCASECMP
/* Define to 1 if you have the `strdup' function. */
#undef HAVE_STRDUP
/* Define to 1 if you have the `strerror' function. */ /* Define to 1 if you have the `strerror' function. */
#undef HAVE_STRERROR #undef HAVE_STRERROR
@ -945,6 +948,9 @@
/* Define to 1 if you have the `_spawnvp' function. */ /* Define to 1 if you have the `_spawnvp' function. */
#undef HAVE__SPAWNVP #undef HAVE__SPAWNVP
/* Define to 1 if you have the `_strdup' function. */
#undef HAVE__STRDUP
/* Define to 1 if you have the `_stricmp' function. */ /* Define to 1 if you have the `_stricmp' function. */
#undef HAVE__STRICMP #undef HAVE__STRICMP

View File

@ -126,6 +126,10 @@ struct statvfs
#define pclose _pclose #define pclose _pclose
#endif #endif
#if !defined(HAVE_STRDUP) && defined(HAVE__STRDUP)
#define strdup _strdup
#endif
#if !defined(HAVE_SNPRINTF) && defined(HAVE__SNPRINTF) #if !defined(HAVE_SNPRINTF) && defined(HAVE__SNPRINTF)
#define snprintf _snprintf #define snprintf _snprintf
#endif #endif