2e6013c
From 4bed1934d4f1c46af3f2e10199238bc5ab2a7649 Mon Sep 17 00:00:00 2001
2e6013c
From: HanatoK <summersnow9403@gmail.com>
2e6013c
Date: Sat, 1 May 2021 01:04:38 -0500
2e6013c
Subject: [PATCH] Fix FTBFS.
2e6013c
2e6013c
Previous boost library (1.75) may implicitly include cmath, but the
2e6013c
latest version (1.76) does not, so the calls to exp are undefined. This
2e6013c
commit include cmath in script_translator.cc and table_translator.cc to
2e6013c
fix the issue (#462).
2e6013c
---
2e6013c
 src/rime/gear/script_translator.cc | 1 +
2e6013c
 src/rime/gear/table_translator.cc  | 1 +
2e6013c
 2 files changed, 2 insertions(+)
2e6013c
2e6013c
diff --git a/src/rime/gear/script_translator.cc b/src/rime/gear/script_translator.cc
2e6013c
index 4a45f05e..25061659 100644
2e6013c
--- a/src/rime/gear/script_translator.cc
2e6013c
+++ b/src/rime/gear/script_translator.cc
2e6013c
@@ -8,6 +8,7 @@
2e6013c
 //
2e6013c
 #include <algorithm>
2e6013c
 #include <stack>
2e6013c
+#include <cmath>
2e6013c
 #include <boost/algorithm/string/join.hpp>
2e6013c
 #include <boost/range/adaptor/reversed.hpp>
2e6013c
 #include <rime/composition.h>
2e6013c
diff --git a/src/rime/gear/table_translator.cc b/src/rime/gear/table_translator.cc
2e6013c
index 162ac024..c95e5e24 100644
2e6013c
--- a/src/rime/gear/table_translator.cc
2e6013c
+++ b/src/rime/gear/table_translator.cc
2e6013c
@@ -6,6 +6,7 @@
2e6013c
 //
2e6013c
 #include <boost/algorithm/string.hpp>
2e6013c
 #include <boost/range/adaptor/reversed.hpp>
2e6013c
+#include <cmath>
2e6013c
 #include <utf8.h>
2e6013c
 #include <rime/candidate.h>
2e6013c
 #include <rime/common.h>