From d1b2d11bb58852d8b62e9b2ced315a4cb298fd56 Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Thu, 26 May 2011 02:05:54 +0200 Subject: [PATCH] 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. --- test/tinytest_local.h | 3 +++ 1 file changed, 3 insertions(+) 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