Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
deathkiller committed Feb 3, 2025
1 parent 2ae42ac commit d2208e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions Sources/Shared/Core/Backward.h
Original file line number Diff line number Diff line change
Expand Up @@ -3872,7 +3872,9 @@ namespace Death { namespace Backward {
std::unordered_map<std::string, Implementation::PathComponents> parsedPaths;
std::unordered_map<std::string, Implementation::PathTrie> tries;

# if defined(BACKWARD_TARGET_WINDOWS)
bool failed = false;
# endif
std::vector<ResolvedTrace> resolvedTrace(st.size());
for (std::size_t traceIdx = 0; traceIdx < st.size(); ++traceIdx) {
resolvedTrace[traceIdx] = _resolver.Resolve(st[traceIdx]);
Expand All @@ -3881,20 +3883,22 @@ namespace Death { namespace Backward {
AddPath(resolvedTrace[traceIdx].object_filename, parsedPaths, tries);
AddPath(resolvedTrace[traceIdx].source.filename, parsedPaths, tries);

# if defined(BACKWARD_TARGET_WINDOWS)
if (resolvedTrace[traceIdx].object_function.empty()) {
failed = true;
}
# endif
}

// Finalize paths
std::unordered_map<std::string, std::string> pathMap;
for (auto& [raw, parsedPath] : parsedPaths) {
std::string newPath = Join(tries.at(parsedPath.back()).Disambiguate(parsedPath),
#if defined(BACKWARD_TARGET_WINDOWS)
# if defined(BACKWARD_TARGET_WINDOWS)
"\\"sv
#else
# else
"/"sv
#endif
# endif
);
pathMap.insert({ raw, newPath });
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/nCine/Base/Random.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <chrono>
#include <cmath> // for ldexp()
#include <memory>
#include <cstring>
#include <tuple>

#if defined(DEATH_TARGET_WINDOWS)
Expand Down

0 comments on commit d2208e8

Please sign in to comment.