since some C++ compilers don't set __STDC__
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10009
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue Mar 18 15:07:40 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * com_err.h: Add 'extern "C"' for C++ compatibility; also check for
+ __cplusplus since some C++ compilers don't set __STDC__
+
Mon Mar 3 14:57:35 1997 Ezra Peisach <epeisach@mit.edu>
* error_message.c: Don't declare sys_nerr on Macintosh.
#define NEAR
#endif
-#if defined(__STDC__) || defined(_MSDOS) || defined(_WIN32) || defined(_MACINTOSH)
+#if defined(__STDC__) || defined(__cplusplus) || defined(_MSDOS) || defined(_WIN32) || defined(_MACINTOSH)
/* End-user programs may need this -- oh well */
#ifndef HAVE_STDARG_H
unsigned int n_msgs;
};
+#ifdef __cplusplus
+#extern "C" {
+#endif
+
KRB5_DLLIMP extern void KRB5_CALLCONV_C com_err
ET_STDARG_P((const char FAR *, errcode_t, const char FAR *, ...));
KRB5_DLLIMP extern void KRB5_CALLCONV com_err_va
ET_P((void));
#endif
+#ifdef __cplusplus
+}
+#endif
+
#define __COM_ERR_H
#endif /* ! defined(__COM_ERR_H) */