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