diff --git a/src/xpdev/genwrap.h b/src/xpdev/genwrap.h index 787514c0c1af9a2c42fb50917e98f2562df9857d..1b643f7d075c211f4f2efc5f9e55fc8449fd18c7 100644 --- a/src/xpdev/genwrap.h +++ b/src/xpdev/genwrap.h @@ -272,11 +272,7 @@ DLLEXPORT char* DLLCALL truncsp_lines(char* str); /* Truncate new-line chars off end of string */ DLLEXPORT char* DLLCALL truncnl(char* str); -#if defined(__unix__) - #define STRERROR(x) strerror(x) -#else - #define STRERROR(x) truncsp(strerror(x)) -#endif +#define STRERROR(x) strerror(x) /* Re-entrant version of strerror() */ DLLEXPORT char* DLLCALL safe_strerror(int errnum, char* buf, size_t buflen);