mirror of https://github.com/kiwix/libkiwix.git
Fix include in otherTools.h
This commit is contained in:
parent
e013d38cc6
commit
cbe8e20118
|
@ -20,18 +20,16 @@
|
||||||
#ifndef KIWIX_OTHERTOOLS_H
|
#ifndef KIWIX_OTHERTOOLS_H
|
||||||
#define KIWIX_OTHERTOOLS_H
|
#define KIWIX_OTHERTOOLS_H
|
||||||
|
|
||||||
#ifdef _WIN32
|
#include <string>
|
||||||
#include <windows.h>
|
|
||||||
#else
|
|
||||||
#include <unistd.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <pugixml.hpp>
|
namespace pugi {
|
||||||
|
class xml_node;
|
||||||
|
}
|
||||||
|
|
||||||
namespace kiwix
|
namespace kiwix
|
||||||
{
|
{
|
||||||
void sleep(unsigned int milliseconds);
|
void sleep(unsigned int milliseconds);
|
||||||
std::string nodeToString(pugi::xml_node node);
|
std::string nodeToString(const pugi::xml_node& node);
|
||||||
std::string converta2toa3(const std::string& a2code);
|
std::string converta2toa3(const std::string& a2code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,9 +15,11 @@
|
||||||
# define ARIA2_CMD "aria2c.exe"
|
# define ARIA2_CMD "aria2c.exe"
|
||||||
#else
|
#else
|
||||||
# define ARIA2_CMD "aria2c"
|
# define ARIA2_CMD "aria2c"
|
||||||
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
namespace kiwix {
|
namespace kiwix {
|
||||||
|
|
||||||
Aria2::Aria2():
|
Aria2::Aria2():
|
||||||
|
|
|
@ -17,8 +17,17 @@
|
||||||
* MA 02110-1301, USA.
|
* MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <tools/otherTools.h>
|
#include "tools/otherTools.h"
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <windows.h>
|
||||||
|
#else
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
#include <pugixml.hpp>
|
||||||
|
|
||||||
|
|
||||||
static std::map<std::string, std::string> codeisomapping {
|
static std::map<std::string, std::string> codeisomapping {
|
||||||
{ "aa", "aar" },
|
{ "aa", "aar" },
|
||||||
|
@ -185,7 +194,7 @@ struct XmlStringWriter: pugi::xml_writer
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
std::string kiwix::nodeToString(pugi::xml_node node)
|
std::string kiwix::nodeToString(const pugi::xml_node& node)
|
||||||
{
|
{
|
||||||
XmlStringWriter writer;
|
XmlStringWriter writer;
|
||||||
node.print(writer, " ");
|
node.print(writer, " ");
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
#define KIWIX_XMLRPC_H_
|
#define KIWIX_XMLRPC_H_
|
||||||
|
|
||||||
#include <tools/otherTools.h>
|
#include <tools/otherTools.h>
|
||||||
|
#include <pugixml.hpp>
|
||||||
|
|
||||||
namespace kiwix {
|
namespace kiwix {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue