diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-12-19 11:30:23 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-12-19 11:30:23 -0200 |
| commit | 1465edf341431cc24777ee2e3be5a78ac1c8206a (patch) | |
| tree | 5a88cbd8c7eab43c7d7355b792dfd3858ea0348d | |
| parent | 77e786d4361b27355e452402a2c340f019561843 (diff) | |
| download | lua-1465edf341431cc24777ee2e3be5a78ac1c8206a.tar.gz lua-1465edf341431cc24777ee2e3be5a78ac1c8206a.tar.bz2 lua-1465edf341431cc24777ee2e3be5a78ac1c8206a.zip | |
old Visual Studio versions did not support 'noreturn' attribute
| -rw-r--r-- | llimits.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: llimits.h,v 1.123 2014/10/29 17:07:45 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.124 2014/11/02 19:33:33 roberto Exp roberto $ |
| 3 | ** Limits, basic types, and some other 'installation-dependent' definitions | 3 | ** Limits, basic types, and some other 'installation-dependent' definitions |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -133,7 +133,7 @@ typedef LUAI_UACINT l_uacInt; | |||
| 133 | */ | 133 | */ |
| 134 | #if defined(__GNUC__) | 134 | #if defined(__GNUC__) |
| 135 | #define l_noret void __attribute__((noreturn)) | 135 | #define l_noret void __attribute__((noreturn)) |
| 136 | #elif defined(_MSC_VER) | 136 | #elif defined(_MSC_VER) && _MSC_VER >= 1200 |
| 137 | #define l_noret void __declspec(noreturn) | 137 | #define l_noret void __declspec(noreturn) |
| 138 | #else | 138 | #else |
| 139 | #define l_noret void | 139 | #define l_noret void |
