mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
defines.h: warn EXTERN
* include/ruby/defines.h (EXTERN): warn as deprecated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8a2a882e53
commit
41910c0d0e
1 changed files with 10 additions and 1 deletions
|
@ -268,7 +268,16 @@ void xfree(void*);
|
|||
#endif
|
||||
|
||||
#ifndef EXTERN
|
||||
#define EXTERN RUBY_EXTERN /* deprecated */
|
||||
# if defined __GNUC__
|
||||
# define EXTERN _Pragma("message \"EXTERN is deprecated, use RUBY_EXTERN instead\""); \
|
||||
RUBY_EXTERN
|
||||
# elif defined _MSC_VER
|
||||
# define EXTERN __pragma(message(__FILE__"("STRINGIZE(__LINE__)"): warning: "\
|
||||
"EXTERN is deprecated, use RUBY_EXTERN instead")); \
|
||||
RUBY_EXTERN
|
||||
# else
|
||||
# define EXTERN <-<-"EXTERN is deprecated, use RUBY_EXTERN instead"->->
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef RUBY_MBCHAR_MAXSIZE
|
||||
|
|
Loading…
Add table
Reference in a new issue