From 94bc76a60de5a05d039f169724ef7bf96e7e8028 Mon Sep 17 00:00:00 2001 From: usa Date: Sat, 18 May 2002 12:19:05 +0000 Subject: * win32/Makefile.sub (config.h): add VC++4/5 support about noreturn directive. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/Makefile.sub | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'win32') diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 2650d82eb..03422778c 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -182,7 +182,11 @@ config.h: Makefile $(srcdir)/win32/Makefile.sub #define HAVE_PROTOTYPES 1 #define TOKEN_PASTE(x,y) x##y #define HAVE_STDARG_PROTOTYPES 1 +#if _MSC_VER > 1100 && !defined NORETURN #define NORETURN(x) __declspec(noreturn) x +#else +#define NORETURN(x) x +#endif #define HAVE_DECL_SYS_NERR 1 #define STDC_HEADERS 1 #define HAVE_STDLIB_H 1 -- cgit