diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Input.cc | 11 |
1 files changed, 11 insertions, 0 deletions
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; |