diff --git a/Plugin/MathEval.cpp b/Plugin/MathEval.cpp
index b3ba400e09a521f637a89b2e938447b5d5222da8..492392b58b136bfe1486268713e1a7aa2e3144d9 100644
--- a/Plugin/MathEval.cpp
+++ b/Plugin/MathEval.cpp
@@ -9,6 +9,7 @@
 #include "mathEvaluator.h"
 #include "OctreePost.h"
 #include "GEntity.h"
+#include <algorithm>
 
 StringXNumber MathEvalOptions_Number[] = {
   {GMSH_FULLRC, "TimeStep", NULL, -1.},