+Tue Mar 18 13:52:29 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * gssapi.hin: Add 'extern "C"' for C++ compatibility; also check
+ for __cplusplus since some C++ compilers don't set
+ __STDC__
+
Mon Mar 17 14:42:33 1997 Theodore Y. Ts'o <tytso@mit.edu>
* gssapi.hin: Fix header file so that winmac.h is #included when
* Make sure we have a definition for PROTOTYPE.
*/
#if !defined(PROTOTYPE)
-#if defined(__STDC__) || defined(_MSDOS) || defined(_WIN32) || defined(__ultrix)
+#if defined(__STDC__) || defined(__cplusplus) || defined(_MSDOS) || defined(_WIN32) || defined(__ultrix)
#define PROTOTYPE(x) x
#else
#define PROTOTYPE(x) ()
* Finally, function prototypes for the GSSAPI routines.
*/
+#ifdef __cplusplus
+#extern "C" {
+#endif
+
KRB5_DLLIMP OM_uint32 KRB5_CALLCONV gss_acquire_cred
PROTOTYPE( (OM_uint32 FAR *, /* minor_status */
gss_name_t, /* desired_name */
int FAR * /* qop_state */
));
+#ifdef __cplusplus
+}
+#endif
+
/* XXXX these are not part of the GSSAPI C bindings! (but should be) */
#define GSS_CALLING_ERROR_FIELD(x) \