net-im/wemeet: Wemeet - Tencent Video Conferencing (#1186)
[gentoo-zh.git] / app-i18n / libime / files / libime-1.0.7-fix-compile-error.patch
blob18c46f98a5c8fdf07f75ee11bfb7ca2648f112a4
1 From 6b65eed26351a7186804d4885e8163be60be7cb6 Mon Sep 17 00:00:00 2001
2 From: Weng Xuetian <wengxt@gmail.com>
3 Date: Sun, 5 Sep 2021 10:46:58 -0700
4 Subject: [PATCH] Add <cmath> to include.
6 Fix #25
7 ---
8 src/libime/core/languagemodel.cpp | 1 +
9 src/libime/core/userlanguagemodel.cpp | 1 +
10 test/testhistorybigram.cpp | 1 +
11 3 files changed, 3 insertions(+)
13 diff --git a/src/libime/core/languagemodel.cpp b/src/libime/core/languagemodel.cpp
14 index 3706452..71b9a5c 100644
15 --- a/src/libime/core/languagemodel.cpp
16 +++ b/src/libime/core/languagemodel.cpp
17 @@ -9,6 +9,7 @@
18 #include "constants.h"
19 #include "lattice.h"
20 #include "lm/model.hh"
21 +#include <cmath>
22 #include <fcitx-utils/fs.h>
23 #include <fstream>
24 #include <type_traits>
25 diff --git a/src/libime/core/userlanguagemodel.cpp b/src/libime/core/userlanguagemodel.cpp
26 index de19eb3..bfb228b 100644
27 --- a/src/libime/core/userlanguagemodel.cpp
28 +++ b/src/libime/core/userlanguagemodel.cpp
29 @@ -10,6 +10,7 @@
30 #include "lm/model.hh"
31 #include "utils.h"
32 #include "utils_p.h"
33 +#include <cmath>
35 namespace libime {
37 diff --git a/test/testhistorybigram.cpp b/test/testhistorybigram.cpp
38 index 409eafc..1869c93 100644
39 --- a/test/testhistorybigram.cpp
40 +++ b/test/testhistorybigram.cpp
41 @@ -6,6 +6,7 @@
43 #include "libime/core/historybigram.h"
44 #include <boost/range/irange.hpp>
45 +#include <cmath>
46 #include <fcitx-utils/log.h>
47 #include <sstream>