summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/delphi/m_core.inc2
-rw-r--r--include/m_core.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/delphi/m_core.inc b/include/delphi/m_core.inc
index fb7d7034ba..fe6c08de9d 100644
--- a/include/delphi/m_core.inc
+++ b/include/delphi/m_core.inc
@@ -414,6 +414,8 @@ function mir_wstrdup(const src:PWideChar):PWideChar; stdcall;
external CoreDLL name 'mir_wstrdup';
function mir_strndup(const src:PAnsiChar; len:size_t):PAnsiChar; stdcall;
external CoreDLL name 'mir_strndup';
+function mir_wstrndup(const src:PWideChar; len:size_t):PWideChar; stdcall;
+ external CoreDLL name 'mir_wstrndup';
///////////////////////////////////////////////////////////////////////////////
diff --git a/include/m_core.h b/include/m_core.h
index 220289995e..6baf15d32e 100644
--- a/include/m_core.h
+++ b/include/m_core.h
@@ -346,7 +346,9 @@ MIR_C_CORE_DLL(void) mir_free(void* ptr);
MIR_CORE_DLL(char*) mir_strdup(const char* str);
MIR_CORE_DLL(WCHAR*) mir_wstrdup(const WCHAR* str);
+
MIR_CORE_DLL(char*) mir_strndup(const char* str, size_t len);
+MIR_CORE_DLL(WCHAR*) mir_wstrndup(const WCHAR *str, size_t len);
///////////////////////////////////////////////////////////////////////////////
// modules