From 0dbc8c967e97168b16335cfe42ac31e77066d77c Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Sat, 29 Dec 2007 09:30:31 +0000 Subject: [PATCH] avoid unnecessary function defitiion on windows git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25795 72102866-910b-0410-8b05-ffd578937521 --- Source/Additions/GSCategories.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Additions/GSCategories.m b/Source/Additions/GSCategories.m index 8d3ec6557..6c477f453 100644 --- a/Source/Additions/GSCategories.m +++ b/Source/Additions/GSCategories.m @@ -908,8 +908,10 @@ static void MD5Transform (uint32_t buf[4], uint32_t const in[16]) */ @implementation NSError(GSCategories) -#ifndef HAVE_STRERROR_R -#ifdef HAVE_STRERROR + +#if !defined(__MINGW32__) +#if !defined(HAVE_STRERROR_R) +#if defined(HAVE_STRERROR) static int strerror_r(int eno, char *buf, int len) { @@ -948,6 +950,7 @@ strerror_r(int eno, char *buf, int len) } #endif #endif +#endif /* * Returns an NSError instance encapsulating the last system error.