robertdavidgraham / masscan

TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes.
GNU Affero General Public License v3.0
23.18k stars 3.04k forks source link

Masscan compiles in VS2013 only with some modifications #194

Open thomaskonrad opened 8 years ago

thomaskonrad commented 8 years ago

Hi,

I just noticed that out of the box, masscan does not compile in Visual Studio 2013. However, if you replace all lines that say

#elif defined(_MSC_VER) && (_MSC_VER == 1600)

by

#if defined(_MSC_VER) && ((_MSC_VER == 1600) || (_MSC_VER == 1800))

it compiles flawlessly. Otherwise, you get the "unknown compiler" error because the MSVC++ compiler version does not match. See also the accepted answer to this Stackoverflow question.

Would it make sense to permanently change that in the source code?

Cheers Tom

kjacobsen commented 8 years ago

This pull: https://github.com/robertdavidgraham/masscan/pull/195 whilst missing the 2013 project files, contains the required fixes.

sgt53 commented 5 years ago

374 contains a fix for this and other versions