mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-10-20 05:36:20 +02:00
Dev/win compile (#402)
Collection of fixes to make aare build on Windows. Requires the previous PRs for compilation to succeed. - Replaced `or` keyword with || - updated cmake file - fix for 32 bit long in fseek closes #395 closes #396
This commit is contained in:
1 parent
060a0ec9e7
commit
7e1b8a765d
12 files changed
+85
-45
No files matched your search
+1
-1
@@ -302,7 +302,7 @@ void RawFile::open_subfiles(const size_t roi_index) {
|
||||
|
||||
DetectorHeader RawFile::read_header(const std::filesystem::path &fname) {
|
||||
DetectorHeader h{};
|
||||
FILE *fp = fopen(fname.string().c_str(), "r");
|
||||
FILE *fp = fopen(fname.string().c_str(), "rb");
|
||||
if (!fp)
|
||||
throw std::runtime_error(fmt::format(
|
||||
"Could not open file '{}' for frame index 0", fname.string()));
|
||||
|
||||
Reference in new issue
Block a user