This reverts commit fe79aeb9419a9ed88af0d15344d4f3613f5f8614.
This change broke building user apps with Qt, if the unistd.h
header has been included before. Qt classes have methods named
"truncate", and they have a guard like this at the top of a
number of headers (e.g. qstring):
#ifdef truncate
#error qstring.h must be included before any header file that defines
truncate
#endif
Signed-off-by: Martin Storsjö <[email protected]>
---
mingw-w64-headers/crt/unistd.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/mingw-w64-headers/crt/unistd.h b/mingw-w64-headers/crt/unistd.h
index 77fb3b6ad..363fbceaf 100644
--- a/mingw-w64-headers/crt/unistd.h
+++ b/mingw-w64-headers/crt/unistd.h
@@ -66,7 +66,6 @@ int truncate64(const char *, _off64_t);
#define _FILE_OFFSET_BITS_SET_FTRUNCATE
#if (defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64))
#define ftruncate ftruncate64
-#define truncate truncate64
#endif /* _FILE_OFFSET_BITS_SET_FTRUNCATE */
#endif /* _FILE_OFFSET_BITS_SET_FTRUNCATE */
--
2.43.0
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public