From b7249ac1a06acadd7ad99aebdb59378ab35433e6 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: http://svn.ruby-lang.org/repos/ruby/trunk@8394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- rubyio.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'rubyio.h') diff --git a/rubyio.h b/rubyio.h index f52db7f21..a041d90eb 100644 --- a/rubyio.h +++ b/rubyio.h @@ -99,15 +99,6 @@ void rb_io_read_check _((OpenFile*)); int rb_io_read_pending _((OpenFile*)); void rb_read_check _((FILE*)); -#ifdef __GNUC__ -# if ( __GNUC__ == 3 && __GNUC_MINOR__ > 0 ) || __GNUC__ > 3 -# define DEPRECATED(x) x __attribute__ ((deprecated)) -# endif -#endif -#ifndef DEPRECATED -# define DEPRECATED(x) x -#endif - DEPRECATED(int rb_getc _((FILE*))); DEPRECATED(long rb_io_fread _((char *, long, FILE *))); DEPRECATED(long rb_io_fwrite _((const char *, long, FILE *))); -- cgit