From a09cecfffd5151adfc50e343c821ed8ebdd1ab87 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 20 Feb 2026 23:38:28 +0900 Subject: Some generic fixes required for future cmake conversion Signed-off-by: Michele Calgaro --- src/kvilib/core/kvi_error.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/kvilib/core/kvi_error.cpp') 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 - -#ifdef HAVE_STRERROR -#include // for strerror() -#endif +#include // 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]; } -- cgit v1.2.3