[IBAL] This patch fixes the build error due to CSQ use for XP builds.
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 17 Jul 2008 08:16:01 +0000 (08:16 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 17 Jul 2008 08:16:01 +0000 (08:16 +0000)
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1408 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/kernel/SOURCES
core/al/kernel/al_ndi_cm.c
core/bus/kernel/SOURCES

index d88f37b..5f2e33f 100644 (file)
@@ -62,15 +62,6 @@ C_DEFINES=$(C_DEFINES) -DDRIVER -DDEPRECATE_DDK_FUNCTIONS \
 \r
 TARGETLIBS= \\r
        $(TARGETPATH)\*\complib.lib\r
-       \r
-!if !defined(DDK_TARGET_OS) || "$(DDK_TARGET_OS)"=="Win2K"\r
-#\r
-# The driver is built in the Win2K build environment\r
-# - use the library version of safe strings \r
-#\r
-TARGETLIBS= $(TARGETLIBS) $(DDK_LIB_PATH)\ntstrsafe.lib\r
-!endif\r
-\r
 \r
 !IFDEF ENABLE_EVENT_TRACING\r
 \r
index 66994e5..948b815 100644 (file)
@@ -38,6 +38,9 @@
 #include "al.h"\r
 #include "al_mgr.h"\r
 #include "al_debug.h"\r
+#if WINVER <= 0x501\r
+#include "csq.h"\r
+#endif\r
 \r
 #if defined(EVENT_TRACING)\r
 #ifdef offsetof\r
index 845be81..2e58460 100644 (file)
@@ -31,12 +31,8 @@ TARGETLIBS= \
        $(TARGETPATH)\*\complib.lib \\r
        $(TARGETPATH)\*\ibal.lib\r
        \r
-!if !defined(DDK_TARGET_OS) || "$(DDK_TARGET_OS)"=="Win2K"\r
-#\r
-# The driver is built in the Win2K build environment\r
-# - use the library version of safe strings \r
-#\r
-TARGETLIBS= $(TARGETLIBS) $(DDK_LIB_PATH)\ntstrsafe.lib\r
+!if !defined(DDK_TARGET_OS) || "$(DDK_TARGET_OS)"=="WinXP"\r
+TARGETLIBS=$(TARGETLIBS) $(DDK_LIB_PATH)\csq.lib\r
 !endif\r
 \r
 !IFDEF ENABLE_EVENT_TRACING\r