Fix MSVC compatibility issues

Project now builds in Visual Studio 2017, probably earlier versions
too as long as they support enough of C99.
This commit is contained in:
Decaf Code
2018-11-23 13:58:25 -05:00
parent d985965639
commit bfee3db861
10 changed files with 56 additions and 11 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
hooklib_lib = static_library(
'hooklib',
include_directories : inc,
c_pch : '../precompiled.h',
c_pch : [
'../precompiled.c',
'../precompiled.h',
],
sources : [
'serial.c',
'serial.h',
+4
View File
@@ -1,6 +1,10 @@
#include <windows.h>
#ifdef __GNUC__
#include <ntdef.h>
#else
#include <winnt.h>
#endif
#include <devioctl.h>
#include <ntddser.h>
+4
View File
@@ -1,6 +1,10 @@
#include <windows.h>
#ifdef __GNUC__
#include <ntdef.h>
#else
#include <winnt.h>
#endif
#include <devioctl.h>
#include <ntddser.h>
+4
View File
@@ -2,7 +2,11 @@
#include <windows.h>
#ifdef __GNUC__
#include <ntdef.h>
#else
#include <winnt.h>
#endif
#include <devioctl.h>
#include <ntddser.h>