minor linux fixes

This commit is contained in:
Thomas Fussell 2015-10-16 19:46:21 -04:00
parent d08071a745
commit d1ea08fd13
4 changed files with 13 additions and 4 deletions

View File

@ -23,6 +23,7 @@
// @author: see AUTHORS file
#pragma once
#include <cstdint>
#include <vector>
namespace xlnt {

View File

@ -94,7 +94,7 @@ public:
bool diagonal_up;
bool diagonal_down;
diagonal_direction diagonal_direction;
diagonal_direction diagonal_direction_;
bool operator==(const border &other) const
{

View File

@ -490,7 +490,7 @@ void cell::set_value(unsigned long i)
}
#endif
#ifdef __linux__
#ifdef __linux
template<>
void cell::set_value(long long i)
{
@ -985,7 +985,15 @@ std::uint64_t cell::get_value() const
{
return static_cast<std::uint64_t>(d_->value_numeric_);
}
#ifdef __linux
template<>
long long int cell::get_value() const
{
return static_cast<long long int>(d_->value_numeric_);
}
#endif
template<>
float cell::get_value() const
{

View File

@ -253,7 +253,7 @@ std::string write_worksheet(worksheet ws, const std::vector<std::string> &string
else
{
std::stringstream ss;
ss.precision(17);
ss.precision(20);
ss << cell.get_value<long double>();
ss.str();
value_node.text().set(ss.str().c_str());