summaryrefslogtreecommitdiff
path: root/src/Input.cc
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-10-11 16:45:31 -0700
committerPixel <pixel@nobis-crew.org>2011-10-11 16:45:31 -0700
commitead67afc96cdff3e74bb616e8e3a8b0a7695a28a (patch)
tree4d074d11a7983bdbde3f6da7d311cddd9696ef0d /src/Input.cc
parentd2252afcd74af0248c6141c8086d03e12a0a316f (diff)
Making the project compile with mingw32, on the same Makefile. No more separate Makefiles insanity.
Diffstat (limited to 'src/Input.cc')
-rw-r--r--src/Input.cc11
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;