mirror of
https://github.com/libevent/libevent.git
synced 2025-01-20 05:02:55 +08:00
d1b2d11bb5
In test/tinytest_local.h we can't redefine snprintf if the OS has it defined already.
13 lines
169 B
C
13 lines
169 B
C
|
|
#ifdef WIN32
|
|
#include <winsock2.h>
|
|
#endif
|
|
|
|
#include "event2/util.h"
|
|
#include "util-internal.h"
|
|
|
|
#ifdef snprintf
|
|
#undef snprintf
|
|
#endif
|
|
#define snprintf evutil_snprintf
|