From a3be4fea81dd599214adfe20f262bded9c62cafb Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Wed, 2 Oct 2013 09:22:40 +0800 Subject: [PATCH] Recompile on Linux; Replace stricmp by strcasecmp. --- Makefile | 7 ++++--- random.c | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 25c9dbb..16f33b6 100644 --- a/Makefile +++ b/Makefile @@ -170,7 +170,7 @@ isearch.o: isearch.c isearch.h basic.h buffer.h crypt.h line.h utf8.h \ line.o: line.c line.h utf8.h buffer.h crypt.h edef.h estruct.h retcode.h \ log.h window.h defines.h lock.o: lock.c lock.h estruct.h retcode.h display.h edef.h buffer.h \ - crypt.h line.h utf8.h input.h + crypt.h line.h utf8.h input.h pklock.h log.o: log.c log.h retcode.h main.o: main.c basic.h bind.h edef.h buffer.h crypt.h line.h utf8.h \ estruct.h retcode.h bindable.h display.h eval.h execute.h file.h input.h \ @@ -181,7 +181,8 @@ names.o: names.c names.h basic.h bind.h edef.h buffer.h crypt.h line.h \ isearch.h region.h random.h search.h spawn.h window.h defines.h word.h pklock.o: pklock.c pklock.h estruct.h retcode.h edef.h buffer.h crypt.h \ line.h utf8.h -posix.o: posix.c termio.h +posix.o: posix.c termio.h estruct.h retcode.h edef.h buffer.h crypt.h \ + line.h utf8.h random.o: random.c random.h basic.h buffer.h crypt.h line.h utf8.h \ display.h estruct.h retcode.h edef.h execute.h input.h log.h search.h \ terminal.h defines.h window.h @@ -195,7 +196,7 @@ spawn.o: spawn.c spawn.h defines.h buffer.h crypt.h line.h utf8.h \ terminal.h window.h tcap.o: tcap.c terminal.h defines.h display.h estruct.h retcode.h edef.h \ buffer.h crypt.h line.h utf8.h termio.h -termio.o: termio.c termio.h estruct.h retcode.h utf8.h +termio.o: termio.c termio.h utf8.o: utf8.c utf8.h vmsvt.o: vmsvt.c estruct.h retcode.h edef.h buffer.h crypt.h line.h \ utf8.h diff --git a/random.c b/random.c index 6f74d9b..66ee779 100644 --- a/random.c +++ b/random.c @@ -947,7 +947,7 @@ int adjustmode(int kind, int global) /* test it first against the colors we know */ for (i = 0; i < NCOLORS; i++) { - if( stricmp( cbuf, cname[ i]) == 0) { + if( strcasecmp( cbuf, cname[ i]) == 0) { /* finding the match, we set the color */ #if COLOR if( *cbuf >= 'A' && *cbuf <= 'Z') { @@ -976,7 +976,7 @@ int adjustmode(int kind, int global) /* test it against the modes we know */ for (i = 0; i < NUMMODES; i++) { - if( stricmp( cbuf, modename[ i]) == 0) { + if( strcasecmp( cbuf, modename[ i]) == 0) { /* finding a match, we process it */ if (kind == TRUE) if (global)