diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-22 16:26:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-22 16:26:39 +0000 |
commit | 4ef75249df459cd06003f770a707f8d7cd9b3a9a (patch) | |
tree | a4603a252478b9eb84b443473e2f236a106652ed /win32/win32.h | |
parent | e8a83b54cb2321c3b6de9ea2f3df81064a1b18f7 (diff) | |
download | ruby-4ef75249df459cd06003f770a707f8d7cd9b3a9a.tar.gz |
* file.c (test_identical): test if two files are identical.
* file.c (rb_f_test): support DOSISH systems where st_ino is not
reliable. fixed: [ruby-core:06672]
* win32.h, win32.c (rb_w32_osid): check the running platform.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.h')
-rw-r--r-- | win32/win32.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/win32/win32.h b/win32/win32.h index f3efa17940..05e61885aa 100644 --- a/win32/win32.h +++ b/win32/win32.h @@ -68,6 +68,21 @@ extern "C++" { } #endif +#ifdef _M_IX86 +# define WIN95 1 +#else +# undef WIN95 +#endif + +#ifdef WIN95 +extern DWORD rb_w32_osid(void); +#define rb_w32_iswinnt() (rb_w32_osid() == VER_PLATFORM_WIN32_NT) +#define rb_w32_iswin95() (rb_w32_osid() == VER_PLATFORM_WIN32_WINDOWS) +#else +#define rb_w32_iswinnt() TRUE +#define rb_w32_iswin95() FALSE +#endif + #define WNOHANG -1 #undef getc |