+2005-01-14 Ken Raeburn <raeburn@mit.edu>
+
+ * threads.c (k5_mutex_lock_update_stats,
+ krb5int_mutex_unlock_update_stats, krb5int_mutex_report_stats):
+ Define as KRB5_CALLCONV.
+ (krb5int_mutex_lock_update_stats,
+ krb5int_mutex_unlock_update_stats, krb5int_mutex_report_stats)
+ [_WIN32]: Undef macros before defining functions.
+
2005-01-04 Ken Raeburn <raeburn@mit.edu>
* threads.c (krb5int_mutex_lock_update_stats,
}
#ifdef DEBUG_THREADS_STATS
-void
+void KRB5_CALLCONV
k5_mutex_lock_update_stats(k5_debug_mutex_stats *m,
k5_mutex_stats_tmp startwait)
{
m->lockwait.valsqsum += tdiff2;
}
-void
+void KRB5_CALLCONV
krb5int_mutex_unlock_update_stats(k5_debug_mutex_stats *m)
{
k5_debug_time_t now = get_current_time();
return sqrt(rho_squared);
}
-void
+void KRB5_CALLCONV
krb5int_mutex_report_stats(k5_mutex_t *m)
{
char *p;
/* On Windows, everything defined in the export list must be defined.
The UNIX systems where we're using the export list don't seem to
care. */
-void
+#undef krb5int_mutex_lock_update_stats
+void KRB5_CALLCONV
krb5int_mutex_lock_update_stats(k5_debug_mutex_stats *m,
k5_mutex_stats_tmp startwait)
{
}
-void
+#undef krb5int_mutex_unlock_update_stats
+void KRB5_CALLCONV
krb5int_mutex_unlock_update_stats(k5_debug_mutex_stats *m)
{
}
-void
+#undef krb5int_mutex_report_stats
+void KRB5_CALLCONV
krb5int_mutex_report_stats(k5_mutex_t *m)
{
}