mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
initial msys compatibility
This commit is contained in:
1 parent
c40b8a4122
commit
da561ba4d5
4 files changed
+21
-12
No files matched your search
@@ -1,5 +1,6 @@
|
||||
#include "util.hpp"
|
||||
#include <filesystem>
|
||||
#include <array>
|
||||
|
||||
Semaphore::Semaphore(int count)
|
||||
: m_count(count) {}
|
||||
@@ -93,11 +94,9 @@ std::string FormatISO8601(const std::string &in, int extra_offset, const std::st
|
||||
int offset = GetTimezoneOffset();
|
||||
tm.tm_sec += offset + extra_offset;
|
||||
mktime(&tm);
|
||||
std::stringstream ss;
|
||||
const static std::locale locale("");
|
||||
ss.imbue(locale);
|
||||
ss << std::put_time(&tm, fmt.c_str());
|
||||
return ss.str();
|
||||
std::array<char, 512> tmp;
|
||||
std::strftime(tmp.data(), sizeof(tmp), fmt.c_str(), &tm);
|
||||
return tmp.data();
|
||||
}
|
||||
|
||||
void ScrollListBoxToSelected(Gtk::ListBox &list) {
|
||||
|
||||
Reference in new issue
Block a user