diff options
Diffstat (limited to 'plugins/FTPFileYM/curl/lib/memdebug.h')
| -rw-r--r-- | plugins/FTPFileYM/curl/lib/memdebug.h | 21 | 
1 files changed, 20 insertions, 1 deletions
diff --git a/plugins/FTPFileYM/curl/lib/memdebug.h b/plugins/FTPFileYM/curl/lib/memdebug.h index fbeb61de5d..bd565c8dcf 100644 --- a/plugins/FTPFileYM/curl/lib/memdebug.h +++ b/plugins/FTPFileYM/curl/lib/memdebug.h @@ -8,7 +8,7 @@   *                            | (__| |_| |  _ <| |___   *                             \___|\___/|_| \_\_____|   * - * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.   *   * This software is licensed as described in the file COPYING, which   * you should have received as part of this distribution. The terms @@ -46,6 +46,11 @@ CURL_EXTERN void *curl_dorealloc(void *ptr, size_t size, int line,                                   const char *source);  CURL_EXTERN void curl_dofree(void *ptr, int line, const char *source);  CURL_EXTERN char *curl_dostrdup(const char *str, int line, const char *source); +#if defined(WIN32) && defined(UNICODE) +CURL_EXTERN wchar_t *curl_dowcsdup(const wchar_t *str, int line, +                                   const char *source); +#endif +  CURL_EXTERN void curl_memdebug(const char *logname);  CURL_EXTERN void curl_memlimit(long limit);  CURL_EXTERN void curl_memlog(const char *format, ...); @@ -84,6 +89,20 @@ CURL_EXTERN int curl_fclose(FILE *file, int line, const char *source);  #define realloc(ptr,size) curl_dorealloc(ptr, size, __LINE__, __FILE__)  #define free(ptr) curl_dofree(ptr, __LINE__, __FILE__) +#ifdef WIN32 +#  ifdef UNICODE +#    undef wcsdup +#    define wcsdup(ptr) curl_dowcsdup(ptr, __LINE__, __FILE__) +#    undef _wcsdup +#    define _wcsdup(ptr) curl_dowcsdup(ptr, __LINE__, __FILE__) +#    undef _tcsdup +#    define _tcsdup(ptr) curl_dowcsdup(ptr, __LINE__, __FILE__) +#  else +#    undef _tcsdup +#    define _tcsdup(ptr) curl_dostrdup(ptr, __LINE__, __FILE__) +#  endif +#endif +  #define socket(domain,type,protocol)\   curl_socket(domain,type,protocol,__LINE__,__FILE__)  #undef accept /* for those with accept as a macro */  | 
