From 71e765b54c2ace67ff9acc85bc66f51afec80974 Mon Sep 17 00:00:00 2001 From: vchtchetkine Date: Wed, 29 Jul 2009 17:55:53 -0700 Subject: [PATCH] Make changes to enable driver build in new location --- host/windows/usb/legacy/driver/precomp.h | 9 +++++++-- host/windows/usb/legacy/driver/sources.inc | 3 +-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/host/windows/usb/legacy/driver/precomp.h b/host/windows/usb/legacy/driver/precomp.h index fecee1d7f..bc798bc75 100755 --- a/host/windows/usb/legacy/driver/precomp.h +++ b/host/windows/usb/legacy/driver/precomp.h @@ -34,8 +34,13 @@ extern "C" { #pragma warning(default:4201) #pragma warning(default:4214) -#include "adb_api_extra.h" -#include "android_usb_common_defines.h" +// Just to make adb_api.h compile. Since we will not reference any +// of the API routines in the driver, only structures and constants, +// we're fine with that. +typedef void* LPOVERLAPPED; + +#include "adb_api.h" +#include "adb_api_legacy.h" #include "android_usb_pool_tags.h" #include "android_usb_driver_defines.h" #include "android_usb_new_delete.h" diff --git a/host/windows/usb/legacy/driver/sources.inc b/host/windows/usb/legacy/driver/sources.inc index 20dbe7acf..7aeec1d16 100755 --- a/host/windows/usb/legacy/driver/sources.inc +++ b/host/windows/usb/legacy/driver/sources.inc @@ -40,8 +40,7 @@ USER_C_FLAGS=$(USER_C_FLAGS) /wd4100 /wd4002 /wd4509 /wd4390 /TP INCLUDES=$(INCLUDES); \ $(IFSKIT_INC_PATH); \ - ..\common; \ - ..\api; + ..\..\api; TARGETLIBS=$(DDK_LIB_PATH)\usbd.lib