diff --git a/include/spline/bernstein.h b/include/spline/bernstein.h
index d334098a2aee7f21e0010c9d684edf5d31db4e01..c55afd306269ac0b64c70299c64be70deb3312bc 100644
--- a/include/spline/bernstein.h
+++ b/include/spline/bernstein.h
@@ -23,7 +23,7 @@ namespace spline
 ///
 /// \brief Computes factorial of a number
 ///
-unsigned int fact(const unsigned int n)
+inline unsigned int fact(const unsigned int n)
 {
     assert(n>=0);
     int res = 1;
@@ -35,7 +35,7 @@ unsigned int fact(const unsigned int n)
 ///
 /// \brief Computes a binomal coefficient
 ///
-unsigned int bin(const unsigned  int n, const unsigned  int k)
+inline unsigned int bin(const unsigned  int n, const unsigned  int k)
 {
     return fact(n) / (fact(k) * fact(n - k));
 }