mirror of
https://github.com/nmap/nmap.git
synced 2026-01-05 14:09:02 +00:00
Workaround to compile inline functions with MSVC v16 [Patch from Gisle Vanem].
This commit is contained in:
@@ -368,6 +368,10 @@ extern "C" int vsnprintf (char *, size_t, const char *, va_list);
|
||||
#define DEVNULL "/dev/null"
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && !defined(__cplusplus) && !defined(inline)
|
||||
#define inline __inline
|
||||
#endif
|
||||
|
||||
|
||||
static inline int checked_fd_isset(int fd, const fd_set *fds) {
|
||||
#ifndef WIN32
|
||||
|
||||
Reference in New Issue
Block a user