Added the ability to build with Visual Studio 2015 #134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since all the dependencies for dump1090 already build in Visual Studio, I decided to try and get it building also. I tried to keep the changes as minimally invasive as possible. I did move a few of the UNIX-specific functions around to make them easier to exclude as a group. I also excluded most of the signal handling when building in Visual Studio.
Most of the other changes in the body of the files are to support a more generic way of handling error cases. The changes at the top of the files are to support different includes and defines between Windows and Linux. Lastly, I added the Visual Studio 2015 solution and project files. These will likely work on other versions of Visual Studio (maybe requiring some minor tweaks), but I didn't test any other versions.
When I made the Visual Studio project, I assumed the dependencies would be in different directories at the same level as dump1090, with their default names ("pthreads-win32", "libusb", and "librtlsdr"). I have built it and tested the interactive display as well as the http server pretty thoroughly.