diff options
Diffstat (limited to 'src/kvilib/core/kvi_error.cpp')
| -rw-r--r-- | src/kvilib/core/kvi_error.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/kvilib/core/kvi_error.cpp b/src/kvilib/core/kvi_error.cpp index 2786984b..fa4af021 100644 --- a/src/kvilib/core/kvi_error.cpp +++ b/src/kvilib/core/kvi_error.cpp @@ -36,10 +36,7 @@ #endif #include <errno.h> - -#ifdef HAVE_STRERROR -#include <string.h> // for strerror() -#endif +#include <string.h> // FIXME: This stuff should basically die and be eventually replaced with some // helper functions for handling ONLY system errors. @@ -177,9 +174,7 @@ namespace KviError { if((iErrorCode < KVI_NUM_ERRORS) && (iErrorCode >= 0)) return g_errorTable[iErrorCode]; -#ifdef HAVE_STRERROR if(iErrorCode < 0)return strerror(-iErrorCode); -#endif return g_errorTable[KviError_unknownError]; } |
