Skip to content

Commit

Permalink
Fix FTBFS.
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
HanatoK authored and lotem committed May 1, 2021
1 parent 0ee64d4 commit 57cffcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rime/gear/script_translator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions src/rime/gear/table_translator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 57cffcd

Please sign in to comment.