mirror of
https://github.com/curl/curl.git
synced 2026-07-24 21:37:17 +03:00
Check for basename() is now done the same as other function checks
This commit is contained in:
parent
86cec97b22
commit
6d4e6cc813
7 changed files with 127 additions and 32 deletions
|
|
@ -634,9 +634,6 @@
|
|||
/* Define to 1 if you are building a native Windows target. */
|
||||
/* #undef NATIVE_WINDOWS */
|
||||
|
||||
/* If you lack a fine basename() prototype */
|
||||
/* #undef NEED_BASENAME_PROTO */
|
||||
|
||||
/* Define to 1 if you need the lber.h header file even with ldap.h */
|
||||
/* #undef NEED_LBER_H */
|
||||
|
||||
|
|
|
|||
|
|
@ -559,9 +559,6 @@
|
|||
/* if you have the zlib.h header file */
|
||||
/* #undef HAVE_ZLIB_H */
|
||||
|
||||
/* If you lack a fine basename() prototype */
|
||||
/* #undef NEED_BASENAME_PROTO */
|
||||
|
||||
/* need REENTRANT defined */
|
||||
/* #undef NEED_REENTRANT */
|
||||
|
||||
|
|
|
|||
|
|
@ -733,9 +733,6 @@
|
|||
/* Define to 1 if you are building a native Windows target. */
|
||||
/* #undef NATIVE_WINDOWS */
|
||||
|
||||
/* If you lack a fine basename() prototype */
|
||||
/* #undef NEED_BASENAME_PROTO */
|
||||
|
||||
/* Define to 1 if you need the lber.h header file even with ldap.h */
|
||||
/* #undef NEED_LBER_H */
|
||||
|
||||
|
|
|
|||
|
|
@ -135,9 +135,9 @@ Content-Disposition: form-data; name="FILECONTENT"
|
|||
|
||||
#ifndef CURL_DISABLE_HTTP
|
||||
|
||||
#if defined(HAVE_BASENAME) && defined(NEED_BASENAME_PROTO)
|
||||
/* This system has a basename() but no prototype for it! */
|
||||
char *basename(char *path);
|
||||
#ifndef HAVE_BASENAME
|
||||
static char *Curl_basename(char *path);
|
||||
#define basename(x) Curl_basename((x))
|
||||
#endif
|
||||
|
||||
static size_t readfromfile(struct Form *form, char *buffer, size_t size);
|
||||
|
|
@ -1067,7 +1067,7 @@ void curl_formfree(struct curl_httppost *form)
|
|||
required to be reentrant is not required to be thread-safe.
|
||||
|
||||
*/
|
||||
static char *basename(char *path)
|
||||
static char *Curl_basename(char *path)
|
||||
{
|
||||
/* Ignore all the details above for now and make a quick and simple
|
||||
implementaion here */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue