mirror of
https://gitea.tendokyu.moe/TeamTofuShop/capnhook.git
synced 2026-10-06 05:48:04 +03:00
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:
+4
-1
@@ -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',
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#include <windows.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
#include <ntdef.h>
|
||||
#else
|
||||
#include <winnt.h>
|
||||
#endif
|
||||
#include <devioctl.h>
|
||||
#include <ntddser.h>
|
||||
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#include <windows.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
#include <ntdef.h>
|
||||
#else
|
||||
#include <winnt.h>
|
||||
#endif
|
||||
#include <devioctl.h>
|
||||
#include <ntddser.h>
|
||||
|
||||
|
||||
@@ -2,7 +2,11 @@
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#ifdef __GNUC__
|
||||
#include <ntdef.h>
|
||||
#else
|
||||
#include <winnt.h>
|
||||
#endif
|
||||
#include <devioctl.h>
|
||||
#include <ntddser.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user