1
0
mirror of https://github.com/lua/lua synced 2026-06-08 15:34:49 +00:00

old Visual Studio versions did not support 'noreturn' attribute

This commit is contained in:
Roberto Ierusalimschy
2014-12-19 11:30:23 -02:00
parent 77e786d436
commit 1465edf341
+2 -2
View File
@@ -1,5 +1,5 @@
/*
** $Id: llimits.h,v 1.123 2014/10/29 17:07:45 roberto Exp roberto $
** $Id: llimits.h,v 1.124 2014/11/02 19:33:33 roberto Exp roberto $
** Limits, basic types, and some other 'installation-dependent' definitions
** See Copyright Notice in lua.h
*/
@@ -133,7 +133,7 @@ typedef LUAI_UACINT l_uacInt;
*/
#if defined(__GNUC__)
#define l_noret void __attribute__((noreturn))
#elif defined(_MSC_VER)
#elif defined(_MSC_VER) && _MSC_VER >= 1200
#define l_noret void __declspec(noreturn)
#else
#define l_noret void