diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-20 14:55:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-20 14:55:21 +0000 |
commit | 6cb19dcbd94655ac7a73cd4d3342fa242ff155a5 (patch) | |
tree | e2e47d117de199bddfdc7eb0e74683690e763818 /win32 | |
parent | 9a4b141f97bdb5aeee38565bd5c20ea628018bd5 (diff) | |
download | ruby-6cb19dcbd94655ac7a73cd4d3342fa242ff155a5.tar.gz |
* win32/win32.c (rb_w32_map_errno): exported.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 6 | ||||
-rw-r--r-- | win32/win32.h | 1 |
2 files changed, 5 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 diff --git a/win32/win32.h b/win32/win32.h index d9311076ec..744c712009 100644 --- a/win32/win32.h +++ b/win32/win32.h @@ -197,6 +197,7 @@ extern int rb_w32_rename(const char *, const char *); extern int rb_w32_stat(const char *, struct stat *); extern char **rb_w32_get_environ(void); extern void rb_w32_free_environ(char **); +extern int rb_w32_map_errno(DWORD); #define vsnprintf(s,n,f,l) rb_w32_vsnprintf(s,n,f,l) #define snprintf rb_w32_snprintf |