summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlad Lesin <vlad_lesin@mail.ru>2019-04-25 23:36:42 +0300
committerVlad Lesin <vlad_lesin@mail.ru>2019-04-27 04:59:53 +0300
commite9b3bfa18c8e680a69fdb2f83d9ba46a91ab398e (patch)
treec5fcfa6178ca1699635ed7c138d7c9f91c14dcbc
parent5fd42a7469be8f6e8498342abd11976d497d51d0 (diff)
downloadmariadb-git-e9b3bfa18c8e680a69fdb2f83d9ba46a91ab398e.tar.gz
One more compilation error fix for c++11 in runtime codebb-10.3-cpp11
-rw-r--r--sql/item_sum.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc
index eb6d71cf99b..50366849e9b 100644
--- a/sql/item_sum.cc
+++ b/sql/item_sum.cc
@@ -35,6 +35,11 @@
#include "sql_parse.h"
#include "sp_head.h"
+#if defined __cplusplus && 201103L <= __cplusplus
+#include <cmath>
+template <typename T> bool isnan(T arg) { return std::isnan(arg); }
+#endif //__cplusplus && 201103L <= __cplusplus
+
/**
Calculate the affordable RAM limit for structures like TREE or Unique
used in Item_sum_*