From 4295030e50db499e51d397af2f2c3a69cc13d96d Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Thu, 19 Jun 2008 07:24:59 +0000 Subject: libc_hidden_proto moved to string.h --- libc/string/strncmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/string/strncmp.c') diff --git a/libc/string/strncmp.c b/libc/string/strncmp.c index 8cebaacac..59e4a2c22 100644 --- a/libc/string/strncmp.c +++ b/libc/string/strncmp.c @@ -10,7 +10,7 @@ #ifdef WANT_WIDE # define Wstrncmp wcsncmp #else -libc_hidden_proto(strncmp) +/* Experimentally off - libc_hidden_proto(strncmp) */ # define Wstrncmp strncmp #endif @@ -25,7 +25,7 @@ int Wstrncmp(register const Wchar *s1, register const Wchar *s2, size_t n) --n; } - return (n == 0) ? 0 : ((*((Wuchar *)s1) < *((Wuchar *)s2)) ? -1 : 1); + return (n == 0) ? 0 : (*((Wuchar *)s1) - *((Wuchar *)s2)); #else int r = 0; -- cgit v1.2.3