File tree Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -541,22 +541,6 @@ int mingw_chmod(const char *filename, int mode)
541
541
return _wchmod (wfilename , mode );
542
542
}
543
543
544
- /*
545
- * The unit of FILETIME is 100-nanoseconds since January 1, 1601, UTC.
546
- * Returns the 100-nanoseconds ("hekto nanoseconds") since the epoch.
547
- */
548
- static inline long long filetime_to_hnsec (const FILETIME * ft )
549
- {
550
- long long winTime = ((long long )ft -> dwHighDateTime << 32 ) + ft -> dwLowDateTime ;
551
- /* Windows to Unix Epoch conversion */
552
- return winTime - 116444736000000000LL ;
553
- }
554
-
555
- static inline time_t filetime_to_time_t (const FILETIME * ft )
556
- {
557
- return (time_t )(filetime_to_hnsec (ft ) / 10000000 );
558
- }
559
-
560
544
/**
561
545
* Verifies that safe_create_leading_directories() would succeed.
562
546
*/
Original file line number Diff line number Diff line change @@ -329,6 +329,22 @@ static inline int getrlimit(int resource, struct rlimit *rlp)
329
329
return 0 ;
330
330
}
331
331
332
+ /*
333
+ * The unit of FILETIME is 100-nanoseconds since January 1, 1601, UTC.
334
+ * Returns the 100-nanoseconds ("hekto nanoseconds") since the epoch.
335
+ */
336
+ static inline long long filetime_to_hnsec (const FILETIME * ft )
337
+ {
338
+ long long winTime = ((long long )ft -> dwHighDateTime << 32 ) + ft -> dwLowDateTime ;
339
+ /* Windows to Unix Epoch conversion */
340
+ return winTime - 116444736000000000LL ;
341
+ }
342
+
343
+ static inline time_t filetime_to_time_t (const FILETIME * ft )
344
+ {
345
+ return (time_t )(filetime_to_hnsec (ft ) / 10000000 );
346
+ }
347
+
332
348
/*
333
349
* Use mingw specific stat()/lstat()/fstat() implementations on Windows.
334
350
*/
You can’t perform that action at this time.
0 commit comments