diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c index d9178da13b..48be4df66e 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -166,8 +166,8 @@ static struct { { WSAEMFILE, EMFILE }, }; -static int -map_errno(DWORD winerr) +int +rb_w32_map_errno(DWORD winerr) { int i; @@ -187,6 +187,8 @@ map_errno(DWORD winerr) return EINVAL; } +#define map_errno rb_w32_map_errno + static char *NTLoginName; #ifdef WIN95 |