mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* file.c (utimbuf): use utimbuf instead of _utimbuf if defined _WIN32.
* win32/Makefile.sub (LIBS): use oldnames.lib. * win32/win32.c (rb_w32_getcwd): follow above change. * win32/win32.h: ditto. * wince/direct.c, wince/direct.h (getcwd): ditto. * wince/io.h: ditto. * wince/string.c, wince/wince.h (stricmp, strnicmp): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d80285a9fe
commit
b369eea79f
10 changed files with 34 additions and 55 deletions
|
@ -2398,12 +2398,8 @@ rb_w32_getcwd(buffer, size)
|
|||
int length;
|
||||
char *bp;
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#undef getcwd
|
||||
if (getcwd(buffer, size) == NULL) {
|
||||
#else
|
||||
if (_getcwd(buffer, size) == NULL) {
|
||||
#endif
|
||||
return NULL;
|
||||
}
|
||||
length = strlen(buffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue