mirror of
https://github.com/nmap/nmap.git
synced 2026-01-07 06:59:03 +00:00
Define a NORETURN macro
This commit is contained in:
@@ -371,6 +371,14 @@ extern "C" int vsnprintf (char *, size_t, const char *, va_list);
|
||||
#define inline __inline
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#define NORETURN __attribute__((noreturn))
|
||||
#elif defined(_MSC_VER)
|
||||
#define NORETURN __declspec((noreturn))
|
||||
#else
|
||||
#define NORETURN
|
||||
#endif
|
||||
|
||||
|
||||
static inline int checked_fd_isset(int fd, fd_set *fds) {
|
||||
#ifndef WIN32
|
||||
|
||||
Reference in New Issue
Block a user