Hello,
It appears that _set_errno() was introduced in Visual C++ 2005. Here is
a patch for dirent.h to keep it from using _set_errno on older Microsoft
compilers.
Edward Berner
Index: win/include/dirent.h
==================================================================
--- win/include/dirent.h
+++ win/include/dirent.h
@@ -866,18 +866,18 @@
/* Set errno variable */
static void
dirent_set_errno(
int error)
{
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) && _MSC_VER >= 1400
- /* Microsoft Visual Studio */
+ /* Microsoft Visual Studio 2005 and later */
_set_errno (error);
#else
- /* Non-Microsoft compiler */
+ /* Non-Microsoft compiler or older Microsoft compiler */
errno = error;
#endif
}
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users