Function symbol ftruncate() is already defined in def file as symbol alias.
So it is not needed to define another symbol redirection in header file.
---
mingw-w64-headers/crt/unistd.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/mingw-w64-headers/crt/unistd.h b/mingw-w64-headers/crt/unistd.h
index dada951e5a8a..363fbceafa4b 100644
--- a/mingw-w64-headers/crt/unistd.h
+++ b/mingw-w64-headers/crt/unistd.h
@@ -60,12 +60,6 @@ int ftruncate(int, _off_t);
int ftruncate64(int, _off64_t);
int truncate(const char *, _off_t);
int truncate64(const char *, _off64_t);
-#ifndef __CRT__NO_INLINE
-__CRT_INLINE int ftruncate(int __fd, _off_t __length)
-{
- return _chsize (__fd, __length);
-}
-#endif /* !__CRT__NO_INLINE */
#endif /* FTRUNCATE_DEFINED */
#ifndef _FILE_OFFSET_BITS_SET_FTRUNCATE
--
2.20.1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public