]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
C++ safety for leashdll.h
authorKevin Wasserman <kevin.wasserman@painless-security.com>
Wed, 13 Jun 2012 15:23:31 +0000 (11:23 -0400)
committerTom Yu <tlyu@mit.edu>
Mon, 27 Aug 2012 23:27:35 +0000 (19:27 -0400)
Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
(cherry picked from commit 0101affa062aa34398bd571740d8d84f6bf45d4d)

ticket: 7270
status: resolved

src/windows/leashdll/leashdll.h

index 63cfe234f8b0bd89af0d2d18b29c16e65af46207..b990224da1b84230983abdd095dca969d020a4db 100644 (file)
@@ -2,6 +2,9 @@
 #define _LEASHDLL_H_
 
 #include <com_err.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
 #ifndef NO_KRB4
 /*
  * This is a hack needed because the real com_err.h does
@@ -262,4 +265,8 @@ extern DECL_FUNC_PTR(LsaCallAuthenticationPackage);
 extern DECL_FUNC_PTR(LsaFreeReturnBuffer);
 extern DECL_FUNC_PTR(LsaGetLogonSessionData);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _LEASHDLL_H_ */