From: Kevin Wasserman Date: Sat, 9 Jun 2012 18:21:13 +0000 (-0400) Subject: Minor fixes for leashwin.h X-Git-Tag: kfw-4.0-final~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9857cbf59995f61a8a21972c1072b57a2410aaa6;p=thirdparty%2Fkrb5.git Minor fixes for leashwin.h -explicitly include krb5.h (for krb5_timestamp) -add extern "C" scope for c++ compatibility Signed-off-by: Kevin Wasserman (cherry picked from commit 68c9b0afef303114c7a43cb90d2516e5d7e2d817) ticket: 7267 status: resolved --- diff --git a/src/windows/include/leashwin.h b/src/windows/include/leashwin.h index 39a7d1a45f..fc210a6ab5 100644 --- a/src/windows/include/leashwin.h +++ b/src/windows/include/leashwin.h @@ -5,6 +5,7 @@ #ifndef NO_KRB4 #include #else +#include #define ANAME_SZ 40 #define REALM_SZ 40 #define SNAME_SZ 40 @@ -127,6 +128,10 @@ struct TICKETINFO { unsigned long flags; }; +#ifdef __cplusplus +extern "C" { +#endif + int FAR Leash_kinit_dlg(HWND hParent, LPLSH_DLGINFO lpdlginfo); int FAR Leash_kinit_dlg_ex(HWND hParent, LPLSH_DLGINFO_EX lpdlginfoex); int FAR Leash_changepwd_dlg(HWND hParent, LPLSH_DLGINFO lpdlginfo); @@ -208,5 +213,8 @@ DWORD Leash_reset_default_mslsa_import(); DWORD Leash_get_default_preserve_kinit_settings(); DWORD Leash_set_default_preserve_kinit_settings(DWORD onoff); DWORD Leash_reset_default_preserve_kinit_settings(); +#ifdef __cplusplus +} +#endif #endif /* LEASHWIN */