From 6292bc5d8fc5a93a8115ede18e69b3c9d88ab074 Mon Sep 17 00:00:00 2001 From: antona Date: Mon, 18 Jul 2005 20:47:48 +0000 Subject: [PATCH] Fix compilation under Cygwin (and make sure it still works on Linux). --- ntfsprogs/decrypt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ntfsprogs/decrypt.c b/ntfsprogs/decrypt.c index d9bd31da..1bbf8e07 100644 --- a/ntfsprogs/decrypt.c +++ b/ntfsprogs/decrypt.c @@ -29,8 +29,6 @@ #include "decrypt.h" -#include "types.h" - #ifdef __CYGWIN__ //#define USE_CRYPTOAPI_RSA 1 #define _WIN32_WINNT 0x501 @@ -84,6 +82,9 @@ static HMODULE hCrypt32 = INVALID_HANDLE_VALUE; #endif /* defined(__CYGWIN__) */ +/* This must be after windows.h include. */ +#include "types.h" + typedef struct { #ifdef __CYGWIN__ HCERTSTORE hSystemStore;