projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f085d05
)
Fix building on GLib older than 2.25.
author
Andrej Kacian
<ticho@claws-mail.org>
Mon, 20 Jul 2015 17:57:05 +0000
(19:57 +0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Mon, 20 Jul 2015 17:57:05 +0000
(19:57 +0200)
src/common/utils.h
patch
|
blob
|
history
diff --git
a/src/common/utils.h
b/src/common/utils.h
index ff01d83977112a5bf4a5f17d46afca475027a0d8..3771d45186aa0aec3fdcdea02ef1ae06f155535a 100644
(file)
--- a/
src/common/utils.h
+++ b/
src/common/utils.h
@@
-75,6
+75,14
@@
typedef gint64 goffset;
#define HAVE_U32_TYPEDEF
#endif
#define HAVE_U32_TYPEDEF
#endif
+#if !GLIB_CHECK_VERSION(2, 25, 0)
+# ifdef G_OS_WIN32
+ typedef _g_stat_struct GStatBuf;
+# else
+ typedef struct stat GStatBuf;
+# endif
+#endif
+
#ifndef BIG_ENDIAN_HOST
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
#define BIG_ENDIAN_HOST 1
#ifndef BIG_ENDIAN_HOST
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
#define BIG_ENDIAN_HOST 1