]> granicus.if.org Git - postgis/commitdiff
change variable used to __MINGW64_VERSION_MAJOR (the mingw64_w32 doesn't have __MING...
authorRegina Obe <lr@pcorp.us>
Thu, 28 Mar 2013 13:32:44 +0000 (13:32 +0000)
committerRegina Obe <lr@pcorp.us>
Thu, 28 Mar 2013 13:32:44 +0000 (13:32 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11218 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/stringbuffer.c

index e06f291d4345c63ba14919317743629efdc4dd93..843de925c8bf42c5085ac04ccb328508421a3ce6 100644 (file)
@@ -209,7 +209,7 @@ stringbuffer_avprintf(stringbuffer_t *s, const char *fmt, va_list ap)
 
        /* Propogate errors up */
        if ( len < 0 ) 
-               #if defined(__MINGW64__)
+               #if defined(__MINGW64_VERSION_MAJOR)
                len = _vscprintf(fmt, ap2);/**Assume windows flaky vsnprintf that returns -1 if initial buffer to small and add more space **/
                #else
                return len;