mirror of
https://github.com/nmap/nmap.git
synced 2026-08-31 23:40:57 +00:00
Workaround to compile inline functions with MSVC v16 [Patch from Gisle Vanem].
This commit is contained in:
parent
b8b256a92b
commit
f20d84f9c1
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue