From: Sebastian Hahn Date: Thu, 26 May 2011 00:05:54 +0000 (+0200) Subject: Always use evutil_snprintf, even if OS provides it X-Git-Tag: release-2.0.12-stable~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1b2d11bb58852d8b62e9b2ced315a4cb298fd56;p=libevent Always use evutil_snprintf, even if OS provides it In test/tinytest_local.h we can't redefine snprintf if the OS has it defined already. --- diff --git a/test/tinytest_local.h b/test/tinytest_local.h index 9f80fcd7..1a7f75ef 100644 --- a/test/tinytest_local.h +++ b/test/tinytest_local.h @@ -6,4 +6,7 @@ #include "event2/util.h" #include "util-internal.h" +#ifdef snprintf +#undef snprintf +#endif #define snprintf evutil_snprintf