Compare commits

..

No commits in common. "940c2bb07e7b4edb301385953fe1dbd44b3ffc48" and "a9094975bea34fe28ffabd6c494ceeaabc457f3b" have entirely different histories.

6 changed files with 9 additions and 11 deletions

View file

@ -773,7 +773,7 @@ static int stbi_write_hdr_core(stbi__write_context *s, int x, int y, int comp, f
#ifdef __STDC_LIB_EXT1__
len = sprintf_s(buffer, sizeof(buffer), "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n", y, x);
#else
len = snprintf(buffer, sizeof(buffer), "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n", y, x);
len = sprintf(buffer, "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n", y, x);
#endif
s->func(s->context, buffer, len);

View file

@ -8,7 +8,7 @@ namespace psemek::journal
std::string current_time()
{
const auto now = std::chrono::system_clock::now();
const auto now = std::chrono::high_resolution_clock::now();
return std::format("{:%FT%TZ}", now);
}

View file

@ -2,6 +2,7 @@
#include <psemek/util/to_string.hpp>
#include <psemek/util/exception.hpp>
#include <psemek/util/hash_table.hpp>
#include <boost/stacktrace/stacktrace.hpp>
#include <chrono>
#include <ctime>

View file

@ -16,7 +16,8 @@ namespace psemek::util
#else
struct stacktrace
{
friend std::ostream & operator << (std::ostream & stream, stacktrace)
template <typename Stream>
friend Stream & operator << (Stream & stream, stacktrace)
{
stream << "(stacktrace disabled)\n";
return stream;

View file

@ -38,7 +38,7 @@ namespace psemek::util
value_ = std::move(new_value);
}
T exchange(T && new_value)
T exchange(T && new_value) const
{
std::lock_guard lock{mutex_};
std::swap(value_, new_value);

View file

@ -49,13 +49,9 @@ function(psemek_add_executable_impl target is_application)
target_link_libraries(${target} PUBLIC psemek)
if(${is_application})
if(ANDROID)
target_link_libraries(${target} PUBLIC
"-Wl,--whole-archive $<TARGET_FILE:${PSEMEK_BACKEND_LIBRARY}> -Wl,--no-whole-archive"
${PSEMEK_BACKEND_LIBRARY})
else()
target_link_libraries(${target} PUBLIC ${PSEMEK_BACKEND_LIBRARY})
endif()
target_link_libraries(${target} PUBLIC
"-Wl,--whole-archive $<TARGET_FILE:${PSEMEK_BACKEND_LIBRARY}> -Wl,--no-whole-archive"
${PSEMEK_BACKEND_LIBRARY})
endif()
install(TARGETS ${target})