[Bug target/14291] [3.4/3.5 Regression] -fprofile-arcs fails (unresolved symbol)
dannysmith at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Mar 16 09:41:00 GMT 2004
------- Additional Comments From dannysmith at gcc dot gnu dot org 2004-03-16 09:41 -------
Umm, the mingw runtime has a function
int _chsize (int, long);
declared in io.h (could also include unistd.h, which basically maps to io.h)
It does exactly the same thing as ftruncate, at least as used
by gcov.
So a simple
#ifdef __MINGW32__
# define ftruncate _chsize
#endif
works.
I've been using that for awhile but had forgotten about it.
Danny
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14291
More information about the Gcc-bugs
mailing list