>>>> "Andy" == Andy Piper
<andy(a)xemacs.org> writes:
Andy> At 10:56 AM 2/11/00 -0500, Raymond Toy wrote:
> I'd make the patch if someone could tell me what to do.
Where is
> winspool.h? Can I just remove that? What about the
Andy> Just #ifdef it out for cygwin < b21
Andy> PHYSICALHEIGHT
> warnings? Can I include Windows/Defines.h in s/cygwin32.h? Or
just
> leave it out completely?
Andy> You can just ignore them although its not tidy.
Ok, here is the obvious patch for the winspool problem. Hope I got it
right. :-)
This lets me get past that problem on 21.2.29 and Cygwin B20.1
(finally upgraded). However, there's another problem in gui-msw.c:
SE_ERR_PNF doesn't seem to be defined anywhere for me. I just patched
the offending lines.
I'm not sending these to xemacs-patches because I have no clue if
these are even remotely correct.
Ray
winspool patch:
--- device-msw.c~ Fri Feb 04 08:22:48 2000
+++ device-msw.c Wed Feb 16 13:14:30 2000
@@ -39,7 +39,9 @@
#include "frame.h"
#include "sysdep.h"
+#if CYGWIN_VERSION_DLL_MAJOR > 20
#include <winspool.h>
+#endif
/* win32 DDE management library globals */
#ifdef HAVE_DRAGNDROP
SE_ERR_PNF patch:
--- gui-msw.c~ Thu Feb 10 09:13:53 2000
+++ gui-msw.c Wed Feb 16 13:24:53 2000
@@ -136,9 +136,17 @@
if (ret > 32)
return Qt;
- if (ret == ERROR_FILE_NOT_FOUND || ret == SE_ERR_FNF)
+ if (ret == ERROR_FILE_NOT_FOUND
+#if CYGWIN_VERSION_DLL_MAJOR > 20
+ || ret == SE_ERR_FNF
+#endif
+ )
signal_simple_error ("file not found", document);
- else if (ret == ERROR_PATH_NOT_FOUND || ret == SE_ERR_PNF)
+ else if (ret == ERROR_PATH_NOT_FOUND
+#if CYGWIN_VERSION_DLL_MAJOR > 20
+ || ret == SE_ERR_PNF
+#endif
+ )
signal_simple_error ("path not found", current_dir);
else if (ret == ERROR_BAD_FORMAT)
signal_simple_error ("bad executable format", document);