diff options
Diffstat (limited to 'src/classifiers/bayes.c')
-rw-r--r-- | src/classifiers/bayes.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/classifiers/bayes.c b/src/classifiers/bayes.c index 77e02ea6b..f8aed3ac7 100644 --- a/src/classifiers/bayes.c +++ b/src/classifiers/bayes.c @@ -121,7 +121,11 @@ inv_chi_square (gdouble value, gint freedom_deg) value /= 2.; errno = 0; +#ifdef HAVE_EXPL prob = expl (-value); +#else + prob = exp (-value); +#endif if (errno == ERANGE) { msg_err ("exp overflow"); return 0; |