Always use evutil_snprintf, even if OS provides it
authorSebastian Hahn <sebastian@torproject.org>
Thu, 26 May 2011 00:05:54 +0000 (02:05 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Thu, 26 May 2011 00:05:54 +0000 (02:05 +0200)
In test/tinytest_local.h we can't redefine snprintf if the OS has it
defined already.

test/tinytest_local.h

index 9f80fcd73158136a37c8a8bc635b569d5ad38281..1a7f75efc5aa47869ab0806f048322a398b59b9e 100644 (file)
@@ -6,4 +6,7 @@
 #include "event2/util.h"
 #include "util-internal.h"
 
+#ifdef snprintf
+#undef snprintf
+#endif
 #define snprintf evutil_snprintf