emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Build failure on M$ (using MSVC): Patch enclosed


From: dhruva
Subject: Build failure on M$ (using MSVC): Patch enclosed
Date: Tue, 20 May 2008 10:28:58 +0530

Hi,
 The current HEAD does not build with MSVC compiler on M$ (XP). There
is still an issue with the emacs.ico file that this patch does not fix
(I just copy the emacs22.ico as emacs.ico to get my build). I will try
getting a working emacs using MSVC on M$ as IMO, debugging is much
easier using the M$ debugger than GDB on M$ platforms.

diff --git a/src/font.c b/src/font.c
index 4f75615..85eb615 100644
--- a/src/font.c
+++ b/src/font.c
@@ -22,7 +22,14 @@ along with GNU Emacs.  If not, see
<http://www.gnu.org/licenses/>.  */
 #include <config.h>
 #include <stdio.h>
 #include <stdlib.h>
+#ifdef WINDOWSNT
+#include <string.h>
+#ifndef strcasecmp
+#define strcasecmp(a,b) stricmp(a,b)
+#endif
+#else
 #include <strings.h>
+#endif
 #include <ctype.h>
 #ifdef HAVE_M17N_FLT
 #include <m17n-flt.h>
diff --git a/src/fontset.c b/src/fontset.c
index 82e5b4e..f3d17ea 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -66,6 +66,12 @@ along with GNU Emacs.  If not, see
<http://www.gnu.org/licenses/>.  */
 #define xassert(X)     (void) 0
 #endif /* not FONTSET_DEBUG */

+#ifdef WINDOWSNT
+#ifndef strcasecmp
+#define strcasecmp(a,b) stricmp(a,b)
+#endif
+#endif
+
 EXFUN (Fclear_face_cache, 1);

 /* FONTSET

-dhruva

-- 
Contents reflect my personal views only!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]