[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#722: More Visual Studio 6.0 compiler errors on Windows XP
From: |
Francis Litterio |
Subject: |
bug#722: More Visual Studio 6.0 compiler errors on Windows XP |
Date: |
Thu, 14 Aug 2008 17:11:12 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (windows-nt) |
I found these additional compiler errors when building CVS Emacs with
Visual Studio 6.0 on Windows XP:
dired.c(964) : error C2520: conversion from unsigned __int64 to double not
implemented, use signed __int64
and:
w32fns.c(250) : error C2143: syntax error : missing ')' before '__stdcall'
w32fns.c(250) : error C2143: syntax error : missing '{' before '__stdcall'
w32fns.c(250) : error C2059: syntax error : ')'
w32fns.c(250) : error C2165: 'left-side modifier' : cannot modify pointers
to data
The latter appears to be caused by the absense of a definition for the
symbol "HMONITOR". The following patches fix both of the above errors.
--
Fran
--- dired.c~ 2008-08-14 17:09:53.759788900 -0400
+++ dired.c 2008-08-14 17:13:16.585787100 -0400
@@ -961,7 +961,7 @@
values[7] = make_number (s.st_size);
/* If the size is out of range for an integer, return a float. */
if (XINT (values[7]) != s.st_size)
- values[7] = make_float ((double)s.st_size);
+ values[7] = make_float ((signed __int64)s.st_size);
/* If the size is negative, and its type is long, convert it back to
positive. */
if (s.st_size < 0 && sizeof (s.st_size) == sizeof (long))
--- w32fns.c~ 2008-08-14 17:23:58.614906000 -0400
+++ w32fns.c 2008-08-14 17:10:41.266229700 -0400
@@ -67,6 +67,8 @@
#define FOF_NO_CONNECTED_ELEMENTS 0x2000
#endif
+#define HMONITOR HANDLE
+
void syms_of_w32fns ();
void globals_of_w32fns ();
- bug#722: More Visual Studio 6.0 compiler errors on Windows XP,
Francis Litterio <=
Message not available
bug#722: More Visual Studio 6.0 compiler errors on Windows XP, Stefan Monnier, 2008/08/15