diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-08-19 16:45:32 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-08-19 16:45:32 -0700 |
commit | a9bf782e965115e81331f4e851efca7d9cbf59ee (patch) | |
tree | 6d6c6ab16519959731d7a5fcbd98d06103a799bf /funcattrs.h | |
parent | 3dc736d939536bcd843597cb655fcba28268705c (diff) | |
download | tcpdump-a9bf782e965115e81331f4e851efca7d9cbf59ee.tar.gz |
Sun C/Oracle Studio doesn't let you declare a function pointer "noreturn", either.
Diffstat (limited to 'funcattrs.h')
-rw-r--r-- | funcattrs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/funcattrs.h b/funcattrs.h index bea98634..f06b444c 100644 --- a/funcattrs.h +++ b/funcattrs.h @@ -80,8 +80,11 @@ /* * However, GCC didn't support that for function *pointers* until GCC * 4.1.0; see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3481. + * + * Sun C/Oracle Studio C doesn't seem to support it, either. */ - #if (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) < 401)) + #if (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) < 401)) \ + || (defined(__SUNPRO_C)) #define NORETURN_FUNCPTR #else #define NORETURN_FUNCPTR __attribute((noreturn)) |