Skip to content

Commit 8dc1167

Browse files
homes32csete
authored andcommitted
Fix compilation error on Windows (MSYS64) in map-selector.c caused by type mismatch in g_stat calls
1 parent 37df056 commit 8dc1167

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/map-selector.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include <glib/gi18n.h>
2323
#include <glib/gstdio.h>
2424
#include <gtk/gtk.h>
25-
#include <sys/stat.h>
2625

2726
#include "compat.h"
2827
#include "map-selector.h"
@@ -76,8 +75,8 @@ static GtkWidget *create_preview_widget(const gchar * selection)
7675
gchar *buff;
7776
gint w, h;
7877
gint64 size;
79-
struct stat sb;
80-
gchar *bf = NULL;
78+
GStatBuf sb;
79+
gchar *bf = NULL;
8180

8281

8382
label = gtk_label_new(NULL);
@@ -148,8 +147,8 @@ static void update_preview_widget(GtkFileChooser * chooser, gpointer data)
148147
GdkPixbuf *obuf, *sbuf;
149148
gint w, h;
150149
gint64 size;
151-
struct stat sb;
152-
gchar *buff = NULL;
150+
GStatBuf sb;
151+
gchar *buff = NULL;
153152

154153

155154
sel = gtk_file_chooser_get_preview_filename(chooser);

0 commit comments

Comments
 (0)