You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
939 B

Index: src/core/datadir.cpp
--- src/core/datadir.cpp.orig 2016-06-24 22:27:52.000000000 +0200
+++ src/core/datadir.cpp 2016-09-25 11:18:36.889374215 +0200
@@ -28,6 +28,7 @@
#include <string>
#include <fstream>
#include <vector>
+#include <cstdlib>
#include "platform_fs.h"
#include "datadir.h"
Index: src/core/rtfgenerator.cpp
--- src/core/rtfgenerator.cpp.orig 2016-06-24 22:27:52.000000000 +0200
+++ src/core/rtfgenerator.cpp 2016-09-25 11:16:16.729414360 +0200
@@ -32,6 +32,14 @@
#include "version.h"
#include "rtfgenerator.h"
+#include <sstream>
+
+template <typename T> std::string my_to_string(const T& n) {
+ std::ostringstream stm;
+ stm << n;
+ return stm.str();
+}
+
namespace highlight
{
@@ -276,7 +284,7 @@
if (!utf8SeqLen){
string m ( "\\u" );
- m += to_string(utf16Char);
+ m += my_to_string(utf16Char);
m += '?';
utf16Char=0L;
return m;