Skip to content

Commit

Permalink
fix: cannot build for x64-release
Browse files Browse the repository at this point in the history
  • Loading branch information
SiLeader authored and cezanne committed Jul 4, 2019
1 parent 59c0929 commit 85ebeaa
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions driver/lib/dbgcode.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "dbgcode.h"

#include <ntstrsafe.h>

#ifdef DBG

#include <ntstrsafe.h>

static namecode_t namecodes_ntstatus[] = {
K_V(STATUS_SUCCESS)
K_V(STATUS_PENDING)
Expand Down
2 changes: 1 addition & 1 deletion driver/stub/stub_dbg.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
#define DRVPREFIX "usbip_stub"
#include "dbgcommon.h"
#include "dbgcode.h"
#include "stub_dev.h"

#ifdef DBG

#include "stub_dev.h"
#include "stub_devconf.h"

#define DBG_GENERAL 0x00000001
Expand Down
1 change: 1 addition & 0 deletions driver/stub/stub_irp.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "stub_driver.h"
#include "stub_dbg.h"
#include "stub_dev.h"

NTSTATUS
complete_irp(IRP *irp, NTSTATUS status, ULONG info)
Expand Down
1 change: 1 addition & 0 deletions driver/stub/stub_irp.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <ntddk.h>
#include "stub_dev.h"

NTSTATUS complete_irp(IRP *irp, NTSTATUS status, ULONG info);
NTSTATUS pass_irp_down(usbip_stub_dev_t *devstub, IRP *irp, PIO_COMPLETION_ROUTINE completion_routine, void *context);
1 change: 1 addition & 0 deletions driver/stub/stub_res.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "stub_dev.h"
#include "usbip_proto.h"

typedef struct stub_res {
PIRP irp;
Expand Down
1 change: 1 addition & 0 deletions driver/stub/usbip_stub.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
<WppScanConfigurationData Condition="'%(ClCompile.ScanConfigurationData)' == ''">trace.h</WppScanConfigurationData>
<WppKernelMode>true</WppKernelMode>
<AdditionalIncludeDirectories>..\..\include;..\lib;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<TreatWarningAsError>false</TreatWarningAsError>
</ClCompile>
<Link>
<AdditionalDependencies>$(DDK_LIB_PATH)wdmsec.lib;$(DDK_LIB_PATH)ntstrsafe.lib;$(DDK_LIB_PATH)usbd.lib;$(DDK_LIB_PATH)usbdex.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down
1 change: 1 addition & 0 deletions driver/vhci/usbip_vhci.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
<WppScanConfigurationData Condition="'%(ClCompile.ScanConfigurationData)' == ''">trace.h</WppScanConfigurationData>
<WppKernelMode>true</WppKernelMode>
<AdditionalIncludeDirectories>..\..\include;..\lib;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<TreatWarningAsError>false</TreatWarningAsError>
</ClCompile>
<Link>
<AdditionalDependencies>$(DDK_LIB_PATH)wdmsec.lib;$(DDK_LIB_PATH)ntstrsafe.lib;usbd.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down
2 changes: 0 additions & 2 deletions driver/vhci/vhci_devconf.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include "vhci.h"

#include <usbdlib.h>

#include "vhci_devconf.h"
#include "usbip_vhci_api.h"
#include "usbip_proto.h"
Expand Down
1 change: 1 addition & 0 deletions userspace/lib/usbip_common.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
<IntrinsicFunctions>true</IntrinsicFunctions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<AdditionalIncludeDirectories>..\..\include</AdditionalIncludeDirectories>
<PreprocessorDefinitions>HAVE_CONFIG_H</PreprocessorDefinitions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
Expand Down
3 changes: 2 additions & 1 deletion userspace/src/usbip/usbip.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,13 @@
<OmitFramePointers>true</OmitFramePointers>
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
<AdditionalIncludeDirectories>..\..\..\include; ..\..\lib; windows</AdditionalIncludeDirectories>
<PreprocessorDefinitions>HAVE_CONFIG_H</PreprocessorDefinitions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>setupapi.lib;ws2_32.lib</AdditionalDependencies>
<AdditionalDependencies>setupapi.lib;advapi32.lib;ws2_32.lib;wintrust.lib;crypt32.lib;newdev.lib</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions userspace/src/usbipd/usbipd.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
<OmitFramePointers>true</OmitFramePointers>
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
<AdditionalIncludeDirectories>..\..\..\include; ..\..\lib; windows</AdditionalIncludeDirectories>
<PreprocessorDefinitions>HAVE_CONFIG_H</PreprocessorDefinitions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
Expand Down

0 comments on commit 85ebeaa

Please sign in to comment.