summaryrefslogtreecommitdiff
path: root/src/util.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2024-06-25 00:25:17 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2024-06-25 00:25:17 -0400
commite3e5b700df9cb2d6138e35bf0def178524c46c14 (patch)
treed6d6fa41b8a9a12b0e6f6fb418e7548bdb8df655 /src/util.hpp
parent8fc4d0334faeecc12773c6757e1d833d0b81e345 (diff)
downloadabaddon-portaudio-e3e5b700df9cb2d6138e35bf0def178524c46c14.tar.gz
abaddon-portaudio-e3e5b700df9cb2d6138e35bf0def178524c46c14.zip
confine locale weirdness to windows only (#317)
Diffstat (limited to 'src/util.hpp')
-rw-r--r--src/util.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.hpp b/src/util.hpp
index fc9568b..4024e34 100644
--- a/src/util.hpp
+++ b/src/util.hpp
@@ -11,6 +11,7 @@
#include <regex>
#include <mutex>
#include <condition_variable>
+#include <glibconfig.h>
#include <optional>
#include <type_traits>
@@ -50,7 +51,8 @@ std::string GetExtension(std::string url);
bool IsURLViewableImage(const std::string &url);
std::vector<uint8_t> ReadWholeFile(const std::string &path);
std::string HumanReadableBytes(uint64_t bytes);
-std::string FormatISO8601(const std::string &in, int extra_offset = 0, const std::string &fmt = "%x %X");
+Glib::ustring FormatUnixEpoch(gint64 time, const std::string &fmt = "%x %X");
+Glib::ustring FormatISO8601(const std::string &in, int extra_offset = 0, const std::string &fmt = "%x %X");
void AddPointerCursor(Gtk::Widget &widget);
template<typename T>