mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Merge branch 'wip/smcv/no-nanoseconds-for-you' into 'main'
glocalfileinfo: Always define _g_stat_mtim_nsec, etc. See merge request GNOME/glib!2516
This commit is contained in:
commit
7cef814b7d
@ -326,6 +326,10 @@ inline static time_t _g_stat_mtime (const GLocalFileStat *buf) { return b
|
||||
inline static guint32 _g_stat_atim_nsec (const GLocalFileStat *buf) { return buf->st_atim.tv_nsec; }
|
||||
inline static guint32 _g_stat_ctim_nsec (const GLocalFileStat *buf) { return buf->st_ctim.tv_nsec; }
|
||||
inline static guint32 _g_stat_mtim_nsec (const GLocalFileStat *buf) { return buf->st_mtim.tv_nsec; }
|
||||
#else
|
||||
inline static guint32 _g_stat_atim_nsec (const GLocalFileStat *buf) { return 0; }
|
||||
inline static guint32 _g_stat_ctim_nsec (const GLocalFileStat *buf) { return 0; }
|
||||
inline static guint32 _g_stat_mtim_nsec (const GLocalFileStat *buf) { return 0; }
|
||||
#endif
|
||||
|
||||
#endif /* !HAVE_STATX */
|
||||
|
Loading…
Reference in New Issue
Block a user