From ead67afc96cdff3e74bb616e8e3a8b0a7695a28a Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 11 Oct 2011 16:45:31 -0700 Subject: Making the project compile with mingw32, on the same Makefile. No more separate Makefiles insanity. --- src/Input.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') diff --git a/src/Input.cc b/src/Input.cc index 3fece65..c812304 100644 --- a/src/Input.cc +++ b/src/Input.cc @@ -7,6 +7,17 @@ #include "Input.h" #include "Task.h" +#ifdef _WIN32 +const char * strerror_r(int errorno, char * buf, size_t bufsize) { +#ifdef _MSVC + strerror_s(buf, bufsize, errorno); + return buf; +#else + return strerror(errorno); +#endif +} +#endif + struct cbResults_t { Balau::Events::Custom evt; int result, errorno; -- cgit v1.2.3