diff options
| author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-24 09:40:34 +0000 |
|---|---|---|
| committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-24 09:40:34 +0000 |
| commit | 83f7fe29743d8ee2ad8559e8b1ab9293f1c20c60 (patch) | |
| tree | 8f391b1c113166094e13dd84dc1d79bde460ab85 | |
| parent | 044baba8a310b1b62cbc4243fef2435c4a4b7ca6 (diff) | |
| download | ruby-83f7fe29743d8ee2ad8559e8b1ab9293f1c20c60.tar.gz ruby-83f7fe29743d8ee2ad8559e8b1ab9293f1c20c60.tar.xz ruby-83f7fe29743d8ee2ad8559e8b1ab9293f1c20c60.zip | |
* win32/win32.[ch]: failed to compile on bcc32 (and probably wince)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | win32/win32.c | 2 | ||||
| -rw-r--r-- | win32/win32.h | 6 |
3 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Fri Dec 24 18:39:25 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> + + * win32/win32.[ch]: failed to compile on bcc32 (and probably wince) + Fri Dec 24 02:52:52 2004 Nobuyoshi Nakada <nobu@ruby-lang.org> * io.c (io_reopen, rb_io_reopen): prohibit to change access mode for diff --git a/win32/win32.c b/win32/win32.c index f44b805ae..5986ca5ea 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -3322,6 +3322,7 @@ rb_w32_snprintf(char *buf, size_t size, const char *format, ...) return ret; } +#if !defined(__BORLANDC__) && !defined(_WIN32_WCE) int rb_w32_isatty(int fd) { @@ -3335,6 +3336,7 @@ rb_w32_isatty(int fd) } return 1; } +#endif // // Fix bcc32's stdio bug diff --git a/win32/win32.h b/win32/win32.h index a7995a083..005e335e2 100644 --- a/win32/win32.h +++ b/win32/win32.h @@ -105,7 +105,6 @@ extern "C++" { #define eof() _eof() #define filelength(h) _filelength(h) #define mktemp(t) _mktemp(t) -#define perror(s) _perror(s) #define read(h, b, l) _read(h, b, l) #define tell(h) _tell(h) #define umask(m) _umask(m) @@ -125,8 +124,10 @@ extern "C++" { #define stat(path,st) rb_w32_stat(path,st) #undef execv #define execv(path,argv) do_aspawn(P_OVERLAY,path,argv) +#if !defined(__BORLANDC__) && !defined(_WIN32_WCE) #undef isatty #define isatty(h) rb_w32_isatty(h) +#endif #ifdef __MINGW32__ struct timezone { @@ -183,7 +184,10 @@ extern int do_spawn(int, char *); extern int do_aspawn(int, char *, char **); extern int kill(int, int); extern pid_t rb_w32_getpid(void); + +#if !defined(__BORLANDC__) && !defined(_WIN32_WCE) extern int rb_w32_isatty(int); +#endif #ifdef __BORLANDC__ extern FILE *rb_w32_fopen(const char *, const char *); |
