]> granicus.if.org Git - check/commitdiff
libcompat: put snprintf defines in libcompat.h
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Thu, 2 Jan 2014 02:43:02 +0000 (02:43 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Thu, 2 Jan 2014 02:43:02 +0000 (02:43 +0000)
On MSVC, the cmake definitions do not seem to work as expected.
Putting the snprintf and vsnprintf definitions in libcompat.h.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@996 64e312b2-a51f-0410-8e61-82d0ca0eb02a

lib/libcompat.h

index 200506bae041ce8a86ac59004f908822ae05a391..914d1829d5895210b31f36b7cf4c9445478e484f 100644 (file)
@@ -188,9 +188,11 @@ CK_DLL_EXP int timer_delete(timer_t timerid);
 
 #if !HAVE_VSNPRINTF
 CK_DLL_EXP int rpl_vsnprintf(char *, size_t, const char *, va_list);
+#define vsnprintf rpl_vsnprintf
 #endif
 #if !HAVE_SNPRINTF
 CK_DLL_EXP int rpl_snprintf(char *, size_t, const char *, ...);
+#define snprintf rpl_snprintf
 #endif
 #endif /* HAVE_STDARG_H */