Skip to content

Foundation: make FileManager build on Windows again #2206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2019

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented May 1, 2019

Windows should use SetFileTime for adjusting the file times. More
importantly, it does not support time_t so the signature of the POSIX
functions are different. Factor out the file time adjustment into a
helper that is implemented in the POSIX/Win32 layer and use that
instead.

@compnerd
Copy link
Member Author

compnerd commented May 1, 2019

@swift-ci please test

@compnerd compnerd force-pushed the time-to-get-a-watch branch 2 times, most recently from 537cc10 to b7bcb4f Compare May 1, 2019 17:34
@compnerd
Copy link
Member Author

compnerd commented May 1, 2019

@swift-ci please test

@millenomi
Copy link
Contributor

@swift-ci please test and merge

2 similar comments
@millenomi
Copy link
Contributor

@swift-ci please test and merge

@compnerd
Copy link
Member Author

compnerd commented May 1, 2019

@swift-ci please test and merge

@compnerd compnerd force-pushed the time-to-get-a-watch branch from b7bcb4f to 042feec Compare May 1, 2019 20:23
@compnerd
Copy link
Member Author

compnerd commented May 1, 2019

@swift-ci please test and merge

@compnerd compnerd force-pushed the time-to-get-a-watch branch from 042feec to 2eac6f1 Compare May 2, 2019 00:04
@compnerd
Copy link
Member Author

compnerd commented May 2, 2019

@swift-ci please test and merge

Windows should use `SetFileTime` for adjusting the file times.  More
importantly, it does not support `time_t` so the signature of the POSIX
functions are different.  Factor out the file time adjustment into a
helper that is implemented in the POSIX/Win32 layer and use that
instead.
@compnerd compnerd force-pushed the time-to-get-a-watch branch from 2eac6f1 to 10bc20b Compare May 2, 2019 02:18
@compnerd
Copy link
Member Author

compnerd commented May 2, 2019

@swift-ci please test and merge

@compnerd
Copy link
Member Author

compnerd commented May 2, 2019

@swift-ci please test Linux platform

4 similar comments
@compnerd
Copy link
Member Author

compnerd commented May 2, 2019

@swift-ci please test Linux platform

@compnerd
Copy link
Member Author

compnerd commented May 2, 2019

@swift-ci please test Linux platform

@compnerd
Copy link
Member Author

compnerd commented May 2, 2019

@swift-ci please test Linux platform

@compnerd
Copy link
Member Author

compnerd commented May 2, 2019

@swift-ci please test Linux platform

@compnerd compnerd merged commit 2df6602 into swiftlang:master May 2, 2019
@compnerd compnerd deleted the time-to-get-a-watch branch May 2, 2019 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants