summaryrefslogtreecommitdiffstats
path: root/qtools/qcstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtools/qcstring.h')
-rw-r--r--qtools/qcstring.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/qtools/qcstring.h b/qtools/qcstring.h
index 08f6e82..8b652b4 100644
--- a/qtools/qcstring.h
+++ b/qtools/qcstring.h
@@ -88,6 +88,12 @@ Q_EXPORT void *qmemmove( void *dst, const void *src, uint len );
#define memmove(s1,s2,n) qmemmove((s1),(s2),(n))
#endif
+#if defined(_OS_WIN32_)
+#define qsnprintf _snprintf
+#else
+#define qsnprintf snprintf
+#endif
+
Q_EXPORT char *qstrdup( const char * );
Q_EXPORT inline uint cstrlen( const char *str )