carbon2-commit: Fix EOVERFLOW breakage under Visual Studio 6

Vin Shelton acs at xemacs.org
Sun Feb 7 12:39:22 EST 2010


changeset:   4911:5ab6dc5d789e
user:        Vin Shelton <acs at xemacs.org>
date:        Thu Jan 14 20:34:28 2010 -0500
files:       src/ChangeLog src/sysfile.h
description:
Fix EOVERFLOW breakage under Visual Studio 6


diff -r 7ac51121843b -r 5ab6dc5d789e src/ChangeLog
--- a/src/ChangeLog	Thu Jan 14 21:39:09 2010 +0100
+++ b/src/ChangeLog	Thu Jan 14 20:34:28 2010 -0500
@@ -1,3 +1,9 @@
+2010-01-14  Vin Shelton  <acs at xemacs.org>
+
+	* sysfile.h: 
+	Add conditional definition for EOVERFLOW, which isn't defined
+	under Visual Studio 6.
+
 2010-01-14  Didier Verna  <didier at xemacs.org>
 
 	* faces.c (complex_vars_of_faces): change X11 bgcolor fallback of
diff -r 7ac51121843b -r 5ab6dc5d789e src/sysfile.h
--- a/src/sysfile.h	Thu Jan 14 21:39:09 2010 +0100
+++ b/src/sysfile.h	Thu Jan 14 20:34:28 2010 -0500
@@ -36,6 +36,11 @@
 
 #ifndef WIN32_NATIVE
 # include <sys/errno.h>		/* <errno.h> does not always imply this */
+#endif
+
+/* EOVERFLOW isn't defined on native Windows under VC6 */
+#ifndef EOVERFLOW
+# define EOVERFLOW    10139
 #endif
 
 #ifdef HAVE_UNISTD_H



More information about the XEmacs-Patches mailing list