summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorvchtchetkine <vchtchetkine@google.com>2009-07-29 17:55:53 -0700
committervchtchetkine <vchtchetkine@google.com>2009-07-29 18:00:04 -0700
commit71e765b54c2ace67ff9acc85bc66f51afec80974 (patch)
treeedd22b7bf83af630c83a937bcf616c0d72a7a8f2 /host
parent1db55021599137f7bcec830d298f6062b495cd35 (diff)
downloadandroid_development-71e765b54c2ace67ff9acc85bc66f51afec80974.tar.gz
android_development-71e765b54c2ace67ff9acc85bc66f51afec80974.tar.bz2
android_development-71e765b54c2ace67ff9acc85bc66f51afec80974.zip
Make changes to enable driver build in new location
Diffstat (limited to 'host')
-rwxr-xr-xhost/windows/usb/legacy/driver/precomp.h9
-rwxr-xr-xhost/windows/usb/legacy/driver/sources.inc3
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