[all-commits] [llvm/llvm-project] bcd055: [flang][msvc] Define access flags under Windows. NFC.
Michael Kruse via All-commits
all-commits at lists.llvm.org
Tue Sep 29 15:01:59 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: bcd05599d0e53977a963799d6ee4f6e0bc21331b
https://github.com/llvm/llvm-project/commit/bcd05599d0e53977a963799d6ee4f6e0bc21331b
Author: Michael Kruse <llvm-project at meinersbur.de>
Date: 2020-09-29 (Tue, 29 Sep 2020)
Changed paths:
M flang/runtime/file.cpp
Log Message:
-----------
[flang][msvc] Define access flags under Windows. NFC.
The flags F_OK, R_OK and W_OK are defined in unistd.h, which does not exist under the Windows platform. Windows still defines the `access` function. Its access flags are documented at https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/access-waccess. For compatibility, define the flags F_OK, R_OK and W_OK using these constants.
This patch is part of the series to make flang compilable with MS Visual Studio <http://lists.llvm.org/pipermail/flang-dev/2020-July/000448.html>.
Reviewed By: klausler
Differential Revision: https://reviews.llvm.org/D88508
More information about the All-commits
mailing list