]> granicus.if.org Git - check/commitdiff
libcompat: do not use _snprintf even if available
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Thu, 2 Jan 2014 02:43:00 +0000 (02:43 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Thu, 2 Jan 2014 02:43:00 +0000 (02:43 +0000)
After going back and forth on this one, it seems simpler to
use libcompat's snprintf, even if _snprintf is available.

There were issues on MSVC using _snprintf.

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

lib/libcompat.h

index 38105603fb67300cdea4bc332ea4d0210e5c68e5..200506bae041ce8a86ac59004f908822ae05a391 100644 (file)
@@ -186,10 +186,6 @@ CK_DLL_EXP int timer_delete(timer_t timerid);
 #if HAVE_STDARG_H
 #include <stdarg.h>
 
-#if !HAVE_SNPRINTF && HAVE__SNPRINTF
-#define snprintf _snprintf;
-#endif /* HAVE_SNPRINTF && HAVE__SNPRINTF */
-
 #if !HAVE_VSNPRINTF
 CK_DLL_EXP int rpl_vsnprintf(char *, size_t, const char *, va_list);
 #endif