Compare commits
No commits in common. "940c2bb07e7b4edb301385953fe1dbd44b3ffc48" and "a9094975bea34fe28ffabd6c494ceeaabc457f3b" have entirely different histories.
940c2bb07e
...
a9094975be
6 changed files with 9 additions and 11 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue