Skip to content

Commit

Permalink
windows
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Jul 16, 2023
1 parent c0e8f45 commit e6de6f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
12 changes: 0 additions & 12 deletions src/xlcpp/xlcpp-pimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,6 @@ class workbook_pimpl {
// la_ssize_t write_callback(struct archive* a, const void* buffer, size_t length) const;
void load_archive(struct archive* a);

#ifdef _WIN32
void rename(const std::filesystem::path& fn) const;
#endif

mutable std::string buf;

#ifdef _WIN32
unique_handle h;
HANDLE h2;
uint8_t readbuf[1048576];
#endif

private:
void load_from_memory(std::span<uint8_t> sv, std::string_view password, std::string_view outfile);
};
Expand Down
17 changes: 3 additions & 14 deletions src/xlcpp/xlcpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@
#include <array>
#include <charconv>

// #ifdef _WIN32
#ifdef _WIN32
#include <stringapiset.h>
// #include <windows.h>
// #endif

// #define FMT_HEADER_ONLY
// #include <fmt/format.h>
// #include <fmt/compile.h>
#endif

#define BLOCK_SIZE 20480

Expand All @@ -31,13 +28,6 @@ static const string NS_CONTENT_TYPES = "http://schemas.openxmlformats.org/packag

#define NUMFMT_OFFSET 165

// static string try_decode(const optional<xml_enc_string_view>& sv) {
// if (!sv)
// return "";
//
// return sv.value().decode();
// }

namespace xlcpp {

/* needed??? */
Expand Down Expand Up @@ -83,7 +73,6 @@ std::vector<uint8_t> loadFile(const std::string& filename) {
}
}


workbook_pimpl::workbook_pimpl(const filesystem::path& fn, string_view password, string_view outfile) {

std::string path = fn;
Expand Down

0 comments on commit e6de6f9

Please sign in to comment.