summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/Compat
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-06-12 18:22:25 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-06-12 18:22:25 +0000
commit21ecc48547be0920eed6ce45d5948c3b7d0d7581 (patch)
tree4d759e1fb665f720df1de93f007358635b8e870c /plugins/PluginUpdater/src/Compat
parentb1a0d9c8ddd50cb9c3abe6aa4c0a3be2f5469063 (diff)
PluginUpdater:
- minor cleanup - compilation fix for IM Updater git-svn-id: http://svn.miranda-ng.org/main/trunk@14134 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/Compat')
-rw-r--r--plugins/PluginUpdater/src/Compat/compat.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/plugins/PluginUpdater/src/Compat/compat.h b/plugins/PluginUpdater/src/Compat/compat.h
index fe68dfdcf0..fe05af3f60 100644
--- a/plugins/PluginUpdater/src/Compat/compat.h
+++ b/plugins/PluginUpdater/src/Compat/compat.h
@@ -148,3 +148,31 @@ __forceinline INT_PTR CreateDirectoryTreeT(const TCHAR *ptszPath)
#define _qtoupper(_c) (((_c) >= 'a' && (_c) <= 'z')?((_c)-('a'+'A')):(_c))
+
+template <size_t _Size>
+inline int mir_snprintf(char(&buffer)[_Size], const char* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ return mir_vsnprintf(buffer, _Size, fmt, args);
+}
+
+template <size_t _Size>
+inline int mir_snwprintf(wchar_t(&buffer)[_Size], const wchar_t* fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ return mir_vsnwprintf(buffer, _Size, fmt, args);
+}
+
+template <size_t _Size>
+inline int mir_vsnprintf(char(&buffer)[_Size], const char* fmt, va_list va)
+{
+ return mir_vsnprintf(buffer, _Size, fmt, va);
+}
+
+template <size_t _Size>
+inline int mir_vsnwprintf(wchar_t(&buffer)[_Size], const wchar_t* fmt, va_list va)
+{
+ return mir_vsnwprintf(buffer, _Size, fmt, va);
+}