X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Frelocwrapper.c;h=b99cc8606b5c8fc7e21490b3da7a5ace2d98fbd8;hb=20229ba96d971f97ff03ab74eeb4e7de1acccf98;hp=c303803a8256cec8fa4cfda8331c737976618e8c;hpb=86f544b2e68eefe1410f8c7db3be1819a18dbfb9;p=gnulib.git diff --git a/lib/relocwrapper.c b/lib/relocwrapper.c index c303803a8..b99cc8606 100644 --- a/lib/relocwrapper.c +++ b/lib/relocwrapper.c @@ -1,5 +1,5 @@ /* Relocating wrapper program. - Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify @@ -22,12 +22,13 @@ -> progreloc -> xreadlink -> readlink - -> canonicalize + -> canonicalize-lgpl -> allocsa -> relocatable -> setenv -> allocsa -> strerror + -> c-ctype Macros that need to be set while compiling this file: - ENABLE_RELOCATABLE 1 @@ -47,14 +48,13 @@ #include #include #include -#if HAVE_UNISTD_H -# include -#endif +#include #include #include "progname.h" #include "relocatable.h" #include "setenv.h" +#include "c-ctype.h" /* Return a copy of the filename, with an extra ".bin" at the end. More generally, it replaces "${EXEEXT}" at the end with ".bin${EXEEXT}". */ @@ -83,8 +83,7 @@ add_dotbin (const char *filename) { unsigned char c1 = *s1; unsigned char c2 = *s2; - if ((c1 >= 'A' && c1 <= 'Z' ? c1 - 'A' + 'a' : c1) - != (c2 >= 'A' && c2 <= 'Z' ? c2 - 'A' + 'a' : c2)) + if (c_tolower (c1) != c_tolower (c2)) goto simple_append; } /* Insert ".bin" before EXEEXT or its equivalent. */