summaryrefslogtreecommitdiff
path: root/win32.h
diff options
context:
space:
mode:
authorMark Nunberg <mnunberg@users.noreply.github.com>2019-04-02 01:17:11 -0400
committerGitHub <noreply@github.com>2019-04-02 01:17:11 -0400
commitca153fa4a8ae84021bdce7ec47e5339eef1d9212 (patch)
tree3d963d9e7fddb9db41da1469b989471b2c54ac07 /win32.h
parent1c43a3823f7cd11e8d25d1979ba5eb01720f0b77 (diff)
parente38cd75562ddb3a20e5dff8969c96568a4fb1ea1 (diff)
Merge pull request #652 from mbitsnbites/mingw-support
Add MinGW support
Diffstat (limited to 'win32.h')
-rw-r--r--win32.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/win32.h b/win32.h
index 1a27c18..7cb5706 100644
--- a/win32.h
+++ b/win32.h
@@ -37,6 +37,10 @@ __inline int c99_snprintf(char* str, size_t size, const char* format, ...)
return count;
}
#endif
+#endif /* _MSC_VER */
-#endif
-#endif \ No newline at end of file
+#ifdef _WIN32
+#define strerror_r(errno,buf,len) strerror_s(buf,len,errno)
+#endif /* _WIN32 */
+
+#endif /* _WIN32_HELPER_INCLUDE */