[Gdal-dev] patch for mingw bug in strdup
Rob McMullen
rob.mcmullen at gmail.com
Tue Mar 27 21:18:20 EDT 2007
Using MinGW, there's a really strange bug that I can't yet isolate
completely, but occurs within msvcrt's strdup implementation.
Enclosed is a patch to duplicate the functionality of strdup but using
VSIMalloc, avoiding the problematic strdup.
If you didn't want to use this to replace strdup entirely, you could
wrap the new code with ifdefs:
#if defined(WIN32) && defined(__GCC__)
which should isolate this to MinGW only.
Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strdup-mingw-bug.patch
Type: application/octet-stream
Size: 611 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070327/5a2cde3d/strdup-mingw-bug.obj
More information about the Gdal-dev
mailing list