* as/hc08/lkaomf51.c (OutputName): made name unsigned char,
[fw/sdcc] / as / mcs51 / lklibr.c
index 2e9bfe437bafd7e04406e137c451504b21327603..c08b8580d22c4e46274831c27c04088a2b5e3144 100644 (file)
 #define EQ(A,B) !strcmp((A),(B))
 #define MAXLINE 254 /*when using fgets*/
 
-#if defined(__APPLE__) && defined(__MACH__)
-#include <sys/types.h>
-#include <sys/malloc.h>
-#else
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
-#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -731,8 +723,8 @@ int fndsym( char *name )
 
                     _fullpath(absPath1, FirstFound->libspc, PATH_MAX);
                     _fullpath(absPath2, ThisLibr->libspc, PATH_MAX);
-                    for(j=0; absPath1[j]!=0; j++) absPath1[j]=tolower(absPath1[j]);
-                    for(j=0; absPath2[j]!=0; j++) absPath2[j]=tolower(absPath2[j]);
+                    for(j=0; absPath1[j]!=0; j++) absPath1[j]=tolower((unsigned char)absPath1[j]);
+                    for(j=0; absPath2[j]!=0; j++) absPath2[j]=tolower((unsigned char)absPath2[j]);
 #else
                     realpath(FirstFound->libspc, absPath1);
                     realpath(ThisLibr->libspc, absPath2);