From b6da170fa72ed489efac5838acec48c446a1ee18 Mon Sep 17 00:00:00 2001 From: Lewis Van Winkle Date: Tue, 9 Feb 2016 19:13:37 -0600 Subject: [PATCH] Added C++ guards. --- genann.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/genann.h b/genann.h index dbf50ba..2cde9ef 100644 --- a/genann.h +++ b/genann.h @@ -29,6 +29,9 @@ #include +#ifdef __cplusplus +extern "C" { +#endif #ifndef GENANN_RANDOM /* We use the following for uniform random numbers between 0 and 1. @@ -99,5 +102,8 @@ double genann_act_sigmoid_cached(double a); double genann_act_threshold(double a); +#ifdef __cplusplus +} +#endif #endif /*__GENANN_H__*/