source: trunk/third-party/event2-02-win32.patch

Last change on this file was 14647, checked in by mikedld, 2 years ago

Fix MinGW build (still produces lots of useless warnings though)

  • Property svn:eol-style set to native
File size: 389 bytes
  • evutil.c

    diff --git a/evutil.c b/evutil.c
    a b  
    15621562        int r;
    15631563        if (!buflen)
    15641564                return 0;
    1565 #if defined(_MSC_VER) || defined(WIN32)
     1565#if (defined(_MSC_VER) && _MSC_VER < 1900) || (defined(WIN32) && (!defined(__USE_MINGW_ANSI_STDIO) || (__USE_MINGW_ANSI_STDIO + 0) == 0))
    15661566        r = _vsnprintf(buf, buflen, format, ap);
    15671567        if (r < 0)
    15681568                r = _vscprintf(format, ap);
Note: See TracBrowser for help on using the repository browser.