ref: ee2c56a96fc58df4942c9ca7bc5054495aa309a1
parent: cc1db2207c48f7a683fd7becb3f971aa64e9c978
author: robs <robs>
date: Thu Mar 12 02:40:13 EDT 2009
add mingw to pipe rewind
--- a/src/formats.c
+++ b/src/formats.c
@@ -397,7 +397,7 @@
fp->_r += AUTO_DETECT_SIZE;
#elif defined __GLIBC__
fp->_IO_read_ptr = fp->_IO_read_base;
-#elif defined _MSC_VER
+#elif defined _MSC_VER || defined __MINGW_H
fp->_ptr = fp->_base;
#else
/* To fix this #error, either simply remove the #error line and live without