summaryrefslogtreecommitdiff
path: root/include/m_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/m_core.h')
-rw-r--r--include/m_core.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/m_core.h b/include/m_core.h
index 79292893c3..c3b7b68ebd 100644
--- a/include/m_core.h
+++ b/include/m_core.h
@@ -97,6 +97,14 @@ MIR_CORE_DLL(INT_PTR) db_set_ws(HANDLE hContact, const char *szModule, const cha
MIR_CORE_DLL(INT_PTR) db_set_utf(HANDLE hContact, const char *szModule, const char *szSetting, const char *val);
MIR_CORE_DLL(INT_PTR) db_set_blob(HANDLE hContact, const char *szModule, const char *szSetting, void *val, unsigned len);
+#ifdef _UNICODE
+ #define db_get_tsa db_get_wsa
+ #define db_set_ts db_set_ws
+#else
+ #define db_get_tsa db_get_sa
+ #define db_set_ts db_set_s
+#endif
+
///////////////////////////////////////////////////////////////////////////////
// events, hooks & services