libtool-patches
[Top][All Lists]
Advanced

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

FYI: mingw cleanup


From: Ralf Wildenhues
Subject: FYI: mingw cleanup
Date: Wed, 3 Nov 2004 15:33:06 +0100
User-agent: Mutt/1.4.1i

Applied to branch-2-0 and HEAD.


2004-11-03  Ralf Wildenhues <address@hidden>

        * ltmain.m4sh (cwrappersource): Cast isalpha arguments correctly.

2004-11-03  Peter Ekberg  <spam.protected>

        * ltmain.m4sh (cwrappersource): clean up warnings and
        #include errors on MinGW.


Index: config/ltmain.m4sh
===================================================================
RCS file: /cvsroot/libtool/libtool/config/ltmain.m4sh,v
retrieving revision 1.1.2.15
retrieving revision 1.1.2.17
diff -u -r1.1.2.15 -r1.1.2.17
--- config/ltmain.m4sh  1 Nov 2004 18:18:39 -0000       1.1.2.15
+++ config/ltmain.m4sh  3 Nov 2004 14:07:37 -0000       1.1.2.17
@@ -5661,6 +5661,7 @@
 #include <malloc.h>
 #include <stdarg.h>
 #include <assert.h>
+#include <ctype.h>
 #include <string.h>
 #include <sys/stat.h>
 
@@ -5792,7 +5793,7 @@
 
 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
   /* Skip over the disk name in MSDOS pathnames. */
-  if (isalpha (name[[0]]) && name[[1]] == ':')
+  if (isalpha ((unsigned char)name[[0]]) && name[[1]] == ':')
     name += 2;
 #endif
 
@@ -5847,7 +5848,7 @@
 
   /* Absolute path? */
 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
-  if (isalpha (wrapper[[0]]) && wrapper[[1]] == ':')
+  if (isalpha ((unsigned char)wrapper[[0]]) && wrapper[[1]] == ':')
   {
     concat_name = xstrdup (wrapper);
     if (check_executable(concat_name))




reply via email to

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