Signed-off-by: Alon Bar-Lev <alon.bar...@gmail.com>
---
 src/prototypes.h |    2 +-
 src/tapdrvr.c    |    5 +----
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/prototypes.h b/src/prototypes.h
index 55454d5..18c566f 100755
--- a/src/prototypes.h
+++ b/src/prototypes.h
@@ -202,7 +202,7 @@ VOID HookDispatchFunctions();

 #if ENABLE_NONADMIN

-#if DDKVER_MAJOR < 5600
+#if defined(DDKVER_MAJOR) && DDKVER_MAJOR < 5600
 /*
  * Better solution for use on Vista DDK, but possibly not compatible with
  * earlier DDKs:
diff --git a/src/tapdrvr.c b/src/tapdrvr.c
index 0df076a..0f75b77 100755
--- a/src/tapdrvr.c
+++ b/src/tapdrvr.c
@@ -36,9 +36,6 @@
 //======================================================

 #include "common.h"
-#ifndef DDKVER_MAJOR
-#error DDKVER_MAJOR must be defined as the major number of the DDK Version
-#endif

 #define NDIS_MINIPORT_DRIVER
 #define BINARY_COMPATIBLE 0
@@ -66,7 +63,7 @@
 //========================================================
 #define ENABLE_NONADMIN 1

-#if DDKVER_MAJOR < 5600
+#if defined(DDKVER_MAJOR) && DDKVER_MAJOR < 5600
 #include <ndis.h>
 #include <ntstrsafe.h>
 #include <ntddk.h>
-- 
1.7.3.4


Reply via email to