summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 3c16e57df1..b602a49116 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -185,8 +185,8 @@ static struct {
{ WSAEMFILE, EMFILE },
};
-static int
-map_errno(DWORD winerr)
+int
+rb_w32_map_errno(DWORD winerr)
{
int i;
@@ -206,6 +206,8 @@ map_errno(DWORD winerr)
return EINVAL;
}
+#define map_errno rb_w32_map_errno
+
static char *NTLoginName;
#ifdef WIN95