1
0
Fork 0
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:
nobu 2017-10-13 08:29:52 +00:00
parent 8a2a882e53
commit 41910c0d0e

View file

@ -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