1
0
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:
henri
2014-02-24 13:16:24 +00:00
parent b8b256a92b
commit f20d84f9c1

View File

@@ -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