Edit

kc3-lang/libevent/test/tinytest_local.h

Branch :

  • Show log

    Commit

  • Author : Sebastian Hahn
    Date : 2011-05-26 02:05:54
    Hash : d1b2d11b
    Message : 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
  • #ifdef WIN32
    #include <winsock2.h>
    #endif
    
    #include "event2/util.h"
    #include "util-internal.h"
    
    #ifdef snprintf
    #undef snprintf
    #endif
    #define snprintf evutil_snprintf