Fossil SCM
Not all MSVC versions understand __declspec(noreturn)
Commit
131bef423401fb10d0289e927f2854bd0d5b84add79196be19e72af73642511c
Parent
c8a4300267fdf1b…
1 file changed
+1
-1
+1
-1
| --- src/config.h | ||
| +++ src/config.h | ||
| @@ -229,11 +229,11 @@ | ||
| 229 | 229 | /* |
| 230 | 230 | ** A marker for functions that never return. |
| 231 | 231 | */ |
| 232 | 232 | #if defined(__GNUC__) || defined(__clang__) |
| 233 | 233 | # define NORETURN __attribute__((__noreturn__)) |
| 234 | -#elif defined(_MSC_VER) | |
| 234 | +#elif defined(_MSC_VER) && (_MSC_VER >= 1310) | |
| 235 | 235 | # define NORETURN __declspec(noreturn) |
| 236 | 236 | #else |
| 237 | 237 | # define NORETURN |
| 238 | 238 | #endif |
| 239 | 239 | |
| 240 | 240 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -229,11 +229,11 @@ | |
| 229 | /* |
| 230 | ** A marker for functions that never return. |
| 231 | */ |
| 232 | #if defined(__GNUC__) || defined(__clang__) |
| 233 | # define NORETURN __attribute__((__noreturn__)) |
| 234 | #elif defined(_MSC_VER) |
| 235 | # define NORETURN __declspec(noreturn) |
| 236 | #else |
| 237 | # define NORETURN |
| 238 | #endif |
| 239 | |
| 240 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -229,11 +229,11 @@ | |
| 229 | /* |
| 230 | ** A marker for functions that never return. |
| 231 | */ |
| 232 | #if defined(__GNUC__) || defined(__clang__) |
| 233 | # define NORETURN __attribute__((__noreturn__)) |
| 234 | #elif defined(_MSC_VER) && (_MSC_VER >= 1310) |
| 235 | # define NORETURN __declspec(noreturn) |
| 236 | #else |
| 237 | # define NORETURN |
| 238 | #endif |
| 239 | |
| 240 |