浏览代码

Merge pull request #44 from iMobs/arm_compilation

ARM Compilation
Max Bruckner 8 年之前
父节点
当前提交
4d06882c68
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Makefile
  2. 1 1
      cJSON.c

+ 1 - 1
Makefile

@@ -39,7 +39,7 @@ $(DYLIBNAME): $(OBJ)
 		$(DYLIBCMD) $< $(LDFLAGS)
 	
 $(STLIBNAME): $(OBJ)
-		ar rcs $@ $<
+		$(AR) rcs $@ $<
 
 $(OBJ): cJSON.c cJSON.h 
 

+ 1 - 1
cJSON.c

@@ -50,7 +50,7 @@ static int cJSON_strcasecmp(const char *s1, const char *s2)
     {
         return 1;
     }
-    for(; tolower(*s1) == tolower(*s2); ++s1, ++s2)
+    for(; tolower(*(const unsigned char *)s1) == tolower(*(const unsigned char *)s2); ++s1, ++s2)
     {
         if (*s1 == 0)
         {