From e72dcc264339ba52cee3bd3334b9f0d4111fe532 Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Thu, 28 Mar 2013 13:32:44 +0000 Subject: [PATCH] change variable used to __MINGW64_VERSION_MAJOR (the mingw64_w32 doesn't have __MINGW64_ (only the mingw64-w64 has that) git-svn-id: http://svn.osgeo.org/postgis/trunk@11218 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/stringbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblwgeom/stringbuffer.c b/liblwgeom/stringbuffer.c index e06f291d4..843de925c 100644 --- a/liblwgeom/stringbuffer.c +++ b/liblwgeom/stringbuffer.c @@ -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; -- 2.40.0