diff options
author | Yang Tse <yangsita@gmail.com> | 2013-03-25 03:15:52 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2013-03-25 03:32:47 +0100 |
commit | 8ec2cb5544b86306b702484ea785b6b9596562ab (patch) | |
tree | 55952aea963b504165c3246768c93b21d6375958 /lib/curl_setup.h | |
parent | c5eabd48e8dbc8393723bb79f0040475d850f389 (diff) |
WIN32 MemoryTracking: track wcsdup() _wcsdup() and _tcsdup() usage
As of 25-mar-2013 wcsdup() _wcsdup() and _tcsdup() are only used in
WIN32 specific code, so tracking of these has not been extended for
other build targets. Without this fix, memory tracking system on
WIN32 builds, when using these functions, would provide misleading
results.
In order to properly extend this support for all targets curl.h
would have to define curl_wcsdup_callback prototype and consequently
wchar_t should be visible before that in curl.h. IOW curl_wchar_t
defined in curlbuild.h and this pulling whatever system header is
required to get wchar_t definition.
Additionally a new curl_global_init_mem() function that also receives
user defined wcsdup() callback would be required.
Diffstat (limited to 'lib/curl_setup.h')
-rw-r--r-- | lib/curl_setup.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/curl_setup.h b/lib/curl_setup.h index e4d8721a0..0508ab56c 100644 --- a/lib/curl_setup.h +++ b/lib/curl_setup.h @@ -270,6 +270,7 @@ # endif # endif # include <tchar.h> + typedef wchar_t *(*curl_wcsdup_callback)(const wchar_t *str); #endif /* |