Steve Dower <steve.do...@python.org> added the comment:
> Microsoft provides stat and struct stat, but they prepend the names with an > underscore. They are also influenced by various compiler options to choose between 32-bit and 64-bit fields. This makes it impossible to use the standard names as part of an ABI, because we can't/don't enforce that the preprocessor definitions match. We should isolate all structures from libc/equivalent in our public API so that we can ensure compatibility. (FILE* was historically also an issue, but that was bad enough that Windows fixed it on their side. The rest of the C runtime library still bleeds everywhere, so we definitely don't want it or its semantics in our public API if avoidable.) ---------- title: Building Python with clang on Windows fails on _Py_stat(): struct stat is not defined -> _Py_stat and _Py_wstat using incorrect type for status argument _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46303> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com