summaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-30 02:59:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-30 02:59:44 +0000
commitb7249ac1a06acadd7ad99aebdb59378ab35433e6 (patch)
tree9083cf2f24bbb51f84bd5e876cc6bdd9473b205f /win32
parentea714a39f048a3385aed37e3ffe0de906c53e933 (diff)
downloadruby-b7249ac1a06acadd7ad99aebdb59378ab35433e6.tar.gz
ruby-b7249ac1a06acadd7ad99aebdb59378ab35433e6.tar.xz
ruby-b7249ac1a06acadd7ad99aebdb59378ab35433e6.zip
* configure.in (RUBY_FUNC_ATTRIBUTE): check for function attribute.
[ruby-dev:26109] * eval.c, gc.c: moved noinline to configure.in. * rubyio.h (DEPRECATED): moved to configure.in. * ruby.h (DEPRECATED, NOINLINE): default definition. * win{32,ce}/Makefile.sub (config.h): deprecated and noinline for __declspec() are available for VC++7 or later. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub4
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index abe454a2c..3254f9214 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -220,6 +220,10 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub
#if _MSC_VER > 1100
#define NORETURN(x) __declspec(noreturn) x
#endif
+#if _MSC_VER >= 1300
+#define DEPRECATED(x) __declspec(deprecated) x
+#define NOINLINE(x) __declspec(noinline) x
+#endif
#define HAVE_DECL_SYS_NERR 1
#define HAVE_LIMITS_H 1
#define HAVE_FCNTL_H 1