First of all, the return type is void, not int (according to C89).
Secondly, perror is required by C89, so there's no need to check for it.
Fixes (cross-) compilation with MinGW.
#else
#include <ctime>
#endif
-#ifdef HAVE_PERROR_DECL
- #include <cerrno>
- #include <cstdio>
-#else
- extern "C" int perror (const char *);
-#endif
+#include <cerrno>
+#include <cstdio>
namespace cln {
#include <sys/times.h>
extern "C" clock_t times (struct tms * buffer);
#endif
-#ifdef HAVE_PERROR_DECL
- #include <cerrno>
- #include <cstdio>
-#else
- extern "C" int perror (const char *);
-#endif
+#include <cerrno>
+#include <cstdio>
namespace cln {