vs2019编译masscan
修改两处地方
1、misc/string_s.h的58行改成如下代码
_MSC_VER >= 1900
2、stubs/stub-lua.c改成如下代码:
name = (void*(*)())GetProcAddress(lib, #name); \
if (name == NULL) fprintf(stderr, "liblua: %s: failed\n", #name);
修改两处地方
1、misc/string_s.h的58行改成如下代码
_MSC_VER >= 1900
2、stubs/stub-lua.c改成如下代码:
name = (void*(*)())GetProcAddress(lib, #name); \
if (name == NULL) fprintf(stderr, "liblua: %s: failed\n", #name);
Author: Olist.213
Link: https://olist213.github.io/posts/vs2019-build-masscan/