diff --git a/include/xlnt/reader/workbook_reader.hpp b/include/xlnt/reader/workbook_reader.hpp index 123a4c5d..2cfb162c 100644 --- a/include/xlnt/reader/workbook_reader.hpp +++ b/include/xlnt/reader/workbook_reader.hpp @@ -23,6 +23,7 @@ // @author: see AUTHORS file #pragma once +#include #include namespace xlnt { diff --git a/include/xlnt/styles/borders.hpp b/include/xlnt/styles/borders.hpp index 6bddd873..5f5692e5 100644 --- a/include/xlnt/styles/borders.hpp +++ b/include/xlnt/styles/borders.hpp @@ -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 { diff --git a/source/cell.cpp b/source/cell.cpp index 4c6e51eb..fab54db1 100644 --- a/source/cell.cpp +++ b/source/cell.cpp @@ -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(d_->value_numeric_); } - + +#ifdef __linux +template<> +long long int cell::get_value() const +{ + return static_cast(d_->value_numeric_); +} +#endif + template<> float cell::get_value() const { diff --git a/source/worksheet_writer.cpp b/source/worksheet_writer.cpp index 4793574c..9529a302 100644 --- a/source/worksheet_writer.cpp +++ b/source/worksheet_writer.cpp @@ -253,7 +253,7 @@ std::string write_worksheet(worksheet ws, const std::vector &string else { std::stringstream ss; - ss.precision(17); + ss.precision(20); ss << cell.get_value(); ss.str(); value_node.text().set(ss.str().c_str());