The provided patch simplifies the code of the reimp tool by using the standard type uint32_t etc. consistently. It also fixes some const/casting issues as well as missing #includes.
With this patch, the mingw-utils package compiles without any warnings under MinGW.
Additionally, the reimp tool also compiles on other platforms, so mingw-utils can be partly compiled as native toolset under Linux/BSD/etc., which is especially useful in MinGW cross compiling environments.
It would be great if you could include this patch. It is meant to be applied to mingw-utils-0.4-1.
This patch is partly based on the reimp fork produced by Alois Schlögl: http://pub.ist.ac.at/~schloegl/software/reimp-0.50.zip
portability fix for the reimp tool of mingw-utils
FYI, the following mailing list posting explains how this patch was created:
http://lists.nongnu.org/archive/html/mingw-cross-env-list/2010-11/msg00081.html
Committed to CVS, and will be included in next release.