summaryrefslogtreecommitdiff
path: root/include/m_core.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-24 13:59:04 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-24 13:59:04 +0000
commit107471fac771abe5774d10769e36c0903a908685 (patch)
treead0a9d14281c1c017b3f4c6f95d41d65e738a985 /include/m_core.h
parentd499d067c4e901c3d8750726405002fe033f4771 (diff)
mir_sntprintf & mir_snvtprintf renamed to mir_snwprintf & mir_snwprintf respectively
mir_sntprintf & mir_snvtprintf are now macros, as they should be from the very beginning git-svn-id: http://svn.miranda-ng.org/main/trunk@5466 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_core.h')
-rw-r--r--include/m_core.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/m_core.h b/include/m_core.h
index b0bc86a244..3167bc514b 100644
--- a/include/m_core.h
+++ b/include/m_core.h
@@ -588,9 +588,9 @@ MIR_CORE_DLL(int) PathToRelativeW(const WCHAR *pSrc, WCHAR *pOut);
// print functions
MIR_CORE_DLL(int) mir_snprintf(char *buffer, size_t count, const char* fmt, ...);
-MIR_CORE_DLL(int) mir_sntprintf(TCHAR *buffer, size_t count, const TCHAR* fmt, ...);
+MIR_CORE_DLL(int) mir_snwprintf(WCHAR *buffer, size_t count, const WCHAR* fmt, ...);
MIR_CORE_DLL(int) mir_vsnprintf(char *buffer, size_t count, const char* fmt, va_list va);
-MIR_CORE_DLL(int) mir_vsntprintf(TCHAR *buffer, size_t count, const TCHAR* fmt, va_list va);
+MIR_CORE_DLL(int) mir_vsnwprintf(WCHAR *buffer, size_t count, const WCHAR* fmt, va_list va);
///////////////////////////////////////////////////////////////////////////////
// protocol functions
@@ -733,6 +733,9 @@ __forceinline char* lrtrimp(char *str) { return ltrimp(rtrim(str)); };
#define wildcmpt wildcmpw
#define wildcmpit wildcmpiw
+
+ #define mir_sntprintf mir_snwprintf
+ #define mir_vsntprintf mir_vsnwprintf
#else
#define mir_t2a(s) mir_strdup(s)
#define mir_a2t(s) mir_strdup(s)
@@ -754,6 +757,9 @@ __forceinline char* lrtrimp(char *str) { return ltrimp(rtrim(str)); };
#define wildcmpt wildcmp
#define wildcmpit wildcmpi
+
+ #define mir_sntprintf mir_snprintf
+ #define mir_vsntprintf mir_vsnprintf
#endif
MIR_CORE_DLL(WCHAR*) mir_a2u_cp(const char* src, int codepage);