From 27a9df2a6ba505846f25aa9cd4cb2627e753e6de Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 30 Apr 2005 02:59:44 +0000 Subject: * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@8394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- wince/Makefile.sub | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wince') diff --git a/wince/Makefile.sub b/wince/Makefile.sub index e1d7de68f7..d4a5d18155 100644 --- a/wince/Makefile.sub +++ b/wince/Makefile.sub @@ -223,6 +223,10 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/wince/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_FCNTL_H 1 #define HAVE_SYS_UTIME_H 1 -- cgit v1.2.3