#include "misc.h"
-#include <clocale>
+#include <sys/stat.h>
+#include <unistd.h>
+
+#include <cerrno>
+#include <cstdint>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#include <memory>
+#include <langinfo.h>
+#include <pwd.h>
+
#include <config.h>
#include "debug.h"
#include "options.h"
#include "ui-fileops.h"
-#include <langinfo.h>
-#include <pwd.h>
-
gdouble get_zoom_increment()
{
return ((options->image.zoom_increment != 0) ? static_cast<gdouble>(options->image.zoom_increment) / 100.0 : 1.0);
*/
gint date_get_first_day_of_week()
{
-#ifdef HAVE__NL_TIME_FIRST_WEEKDAY
+#if HAVE__NL_TIME_FIRST_WEEKDAY
return nl_langinfo(_NL_TIME_FIRST_WEEKDAY)[0];
#else
gchar *dot;
return sysconf(_SC_NPROCESSORS_ONLN);
}
-#ifdef HAVE_GTK4
+#if HAVE_GTK4
void convert_gdkcolor_to_gdkrgba(gpointer data, GdkRGBA *gdk_rgba)
{
/* @FIXME GTK4 stub */
/* Copied from the libarchive .repo. examples */
-#ifndef HAVE_ARCHIVE
+#if !HAVE_ARCHIVE
gchar *open_archive(FileData *)
{
log_printf("%s", _("Warning: libarchive not installed"));