diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-09-06 11:02:15 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-09-06 11:02:15 -0700 |
commit | c724af922246b23fe55947b4033abcc853b4dd47 (patch) | |
tree | 1b2f7fc7d83625a61b130913fc4f93a5143b00ef /funcattrs.h | |
parent | 19961761ae39de7ff6b56ade8baa3b2a3d76f7eb (diff) | |
download | tcpdump-c724af922246b23fe55947b4033abcc853b4dd47.tar.gz |
MSVC doesn't allow __declspec(noreturn) to be applied to function pointers.
Diffstat (limited to 'funcattrs.h')
-rw-r--r-- | funcattrs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/funcattrs.h b/funcattrs.h index f06b444c..cb0678ea 100644 --- a/funcattrs.h +++ b/funcattrs.h @@ -92,9 +92,11 @@ #elif defined(_MSC_VER) /* * MSVC. + * It doesn't allow __declspec(noreturn) to be applied to function + * pointers. */ #define NORETURN __declspec(noreturn) - #define NORETURN_FUNCPTR __declspec(noreturn) + #define NORETURN_FUNCPTR #else #define NORETURN #define NORETURN_FUNCPTR |