aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-28 23:57:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-28 23:57:17 +0000
commitaffcfc9e7a13674736103508a26f0c7624199b8f (patch)
tree97fbf75629739cb8639ef3be709e5daf229fefbe
parent8ef1027a094062b2921a6bed2e7b6e578aecd60a (diff)
downloadruby-affcfc9e7a13674736103508a26f0c7624199b8f.tar.gz
* include/ruby/win32.h (strcasecmp): needed for type_strcasehash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--include/ruby/win32.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 0be46fec01..b1719464c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Sep 29 08:57:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/win32.h (strcasecmp): needed for type_strcasehash.
+
Sat Sep 29 06:47:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (struct cmdline_options): static variables packed.
diff --git a/include/ruby/win32.h b/include/ruby/win32.h
index 4ef337d18d..9f5ccf8889 100644
--- a/include/ruby/win32.h
+++ b/include/ruby/win32.h
@@ -192,9 +192,9 @@ extern int rb_w32_stat(const char *, struct stat *);
extern int rb_w32_fstat(int, struct stat *);
#endif
-#define strcasecmp(s1, s2) stricmp(s1, s2)
-#define strncasecmp(s1, s2, n) strnicmp(s1, s2, n)
-#define fsync(h) _commit(h)
+#define strcasecmp stricmp
+#define strncasecmp strnicmp
+#define fsync _commit
#ifdef __MINGW32__
struct timezone {