1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* win32/win32.c (rb_w32_map_errno): exported.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-02-20 14:55:21 +00:00
parent 5a99317830
commit 99b9eaaa68
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Wed Feb 20 23:55:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* win32/win32.c (rb_w32_map_errno): exported.
Wed Feb 20 23:28:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/readline/extconf.rb (rl_event_hook): workaround for native

View file

@ -240,6 +240,7 @@ extern char * rb_w32_getenv(const char *);
extern int rb_w32_rename(const char *, const char *);
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

View file

@ -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