Commit 47c440a8 authored by Alexandre Julliard's avatar Alexandre Julliard

libport: Remove checks for strerror().

parent 4fcd86e1
...@@ -16772,7 +16772,6 @@ for ac_func in \ ...@@ -16772,7 +16772,6 @@ for ac_func in \
statvfs \ statvfs \
strcasecmp \ strcasecmp \
strdup \ strdup \
strerror \
strncasecmp \ strncasecmp \
strnlen \ strnlen \
strtold \ strtold \
......
...@@ -2190,7 +2190,6 @@ AC_CHECK_FUNCS(\ ...@@ -2190,7 +2190,6 @@ AC_CHECK_FUNCS(\
statvfs \ statvfs \
strcasecmp \ strcasecmp \
strdup \ strdup \
strerror \
strncasecmp \ strncasecmp \
strnlen \ strnlen \
strtold \ strtold \
......
...@@ -936,9 +936,6 @@ ...@@ -936,9 +936,6 @@
/* Define to 1 if you have the `strdup' function. */ /* Define to 1 if you have the `strdup' function. */
#undef HAVE_STRDUP #undef HAVE_STRDUP
/* Define to 1 if you have the `strerror' function. */
#undef HAVE_STRERROR
/* Define to 1 if you have the <strings.h> header file. */ /* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H #undef HAVE_STRINGS_H
......
...@@ -344,10 +344,6 @@ int strncasecmp(const char *str1, const char *str2, size_t n); ...@@ -344,10 +344,6 @@ int strncasecmp(const char *str1, const char *str2, size_t n);
size_t strnlen( const char *str, size_t maxlen ); size_t strnlen( const char *str, size_t maxlen );
#endif /* !defined(HAVE_STRNLEN) */ #endif /* !defined(HAVE_STRNLEN) */
#ifndef HAVE_STRERROR
const char *strerror(int err);
#endif /* !defined(HAVE_STRERROR) */
#ifndef HAVE_STRCASECMP #ifndef HAVE_STRCASECMP
# ifndef HAVE__STRICMP # ifndef HAVE__STRICMP
int strcasecmp(const char *str1, const char *str2); int strcasecmp(const char *str1, const char *str2);
...@@ -524,7 +520,6 @@ extern __int64 interlocked_cmpxchg64( __int64 *dest, __int64 xchg, __int64 compa ...@@ -524,7 +520,6 @@ extern __int64 interlocked_cmpxchg64( __int64 *dest, __int64 xchg, __int64 compa
#define spawnvp __WINE_NOT_PORTABLE(spawnvp) #define spawnvp __WINE_NOT_PORTABLE(spawnvp)
#define statvfs __WINE_NOT_PORTABLE(statvfs) #define statvfs __WINE_NOT_PORTABLE(statvfs)
#define strcasecmp __WINE_NOT_PORTABLE(strcasecmp) #define strcasecmp __WINE_NOT_PORTABLE(strcasecmp)
#define strerror __WINE_NOT_PORTABLE(strerror)
#define strncasecmp __WINE_NOT_PORTABLE(strncasecmp) #define strncasecmp __WINE_NOT_PORTABLE(strncasecmp)
#define strnlen __WINE_NOT_PORTABLE(strnlen) #define strnlen __WINE_NOT_PORTABLE(strnlen)
#define usleep __WINE_NOT_PORTABLE(usleep) #define usleep __WINE_NOT_PORTABLE(usleep)
......
...@@ -99,7 +99,6 @@ C_SRCS = \ ...@@ -99,7 +99,6 @@ C_SRCS = \
spawn.c \ spawn.c \
statvfs.c \ statvfs.c \
strcasecmp.c \ strcasecmp.c \
strerror.c \
strncasecmp.c \ strncasecmp.c \
strnlen.c \ strnlen.c \
symlink.c \ symlink.c \
......
/*
* strerror function
*
* Copyright 1996 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#ifndef HAVE_STRERROR
const char *strerror( int err )
{
/* Let's hope we have sys_errlist then */
return sys_errlist[err];
}
#endif /* HAVE_STRERROR */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment