From: Alon Bar-Lev Date: Wed, 29 Feb 2012 22:37:28 +0200 Message-Id: <1330547854-18889-3-git-send-email-alon.barlev@...277...> In-Reply-To: <1330547702-18756-1-git-send-email-alon.barlev@...277...> References: <1330547702-18756-1-git-send-email-alon.barlev@...277...> Subject: [Openvpn-devel] [tap-windows 05/11] build: set default to newer ddk List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Cc: Alon Bar-Lev Signed-off-by: Alon Bar-Lev --- 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 #include #include -- 1.7.3.4