Skip to content

Commit 2d84b42

Browse files
committed
* ruby.h: enable volatile directive with VC++.
* regex.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 2c85be7 commit 2d84b42

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

ChangeLog

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
Fri Jul 17 06:01:12 2001 Minero Aoki <aamine@loveruby.net>
1+
Tue Jul 17 11:44:40 2001 Usaku Nakamura <usa@osb.att.ne.jp>
2+
3+
* ruby.h: enable volatile directive with VC++.
4+
5+
* regex.c: ditto.
6+
7+
Tue Jul 17 06:01:12 2001 Minero Aoki <aamine@loveruby.net>
28

39
* doc/net/smtp.rd.ja, pop.rd.ja, http.rd.ja: new files.
410

regex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
# include <sys/types.h>
5252
#endif
5353

54-
#ifndef __STDC__
54+
#if !defined(__STDC__) && !defined(_MSC_VER)
5555
# define volatile
5656
#endif
5757

ruby.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extern "C" {
4545
#define ISDIGIT(c) isdigit((unsigned char)(c))
4646
#define ISXDIGIT(c) isxdigit((unsigned char)(c))
4747

48-
#ifndef __STDC__
48+
#if !defined(__STDC__) && !defined(_MSC_VER)
4949
# define volatile
5050
#endif
5151

0 commit comments

Comments
 (0)