From d1696ff5feaf290db27335730787395f3d9e5b34 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Fri, 2 Nov 2007 19:08:21 +0000 Subject: [PATCH] include: Take care to not declare CtxtHandle and PCtxtHandle more than once when including both sspi.h and wincred.h. --- include/sspi.h | 3 +++ include/wincred.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/include/sspi.h b/include/sspi.h index 459de140bb1..dffc7a4d413 100644 --- a/include/sspi.h +++ b/include/sspi.h @@ -63,8 +63,11 @@ typedef struct _SecHandle typedef SecHandle CredHandle; typedef PSecHandle PCredHandle; +#ifndef __WINE_CTXTHANDLE_DEFINED__ +#define __WINE_CTXTHANDLE_DEFINED__ typedef SecHandle CtxtHandle; typedef PSecHandle PCtxtHandle; +#endif typedef struct _SECURITY_INTEGER { diff --git a/include/wincred.h b/include/wincred.h index d041bb38418..9679b57f5ee 100644 --- a/include/wincred.h +++ b/include/wincred.h @@ -32,8 +32,11 @@ typedef struct _SecHandle } SecHandle, *PSecHandle; #endif +#ifndef __WINE_CTXTHANDLE_DEFINED__ +#define __WINE_CTXTHANDLE_DEFINED__ typedef SecHandle CtxtHandle; typedef PSecHandle PCtxtHandle; +#endif typedef struct _CREDENTIAL_ATTRIBUTEA {