mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
minor linux fixes
This commit is contained in:
parent
d08071a745
commit
d1ea08fd13
|
@ -23,6 +23,7 @@
|
|||
// @author: see AUTHORS file
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
namespace xlnt {
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue
Block a user