X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/a9bf782e965115e81331f4e851efca7d9cbf59ee..5287bffd3f4fa1fda9d7734b45f8cf02391d3855:/funcattrs.h 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