Skip to content

Commit dcf7419

Browse files
committed
Add missing guard to prevent adding code to a Windows build
1 parent f22970a commit dcf7419

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flang/include/flang/Runtime/extensions.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@ std::int64_t RTNAME(Signal)(std::int64_t number, void (*handler)(int));
4545
void RTNAME(Sleep)(std::int64_t seconds);
4646

4747
// GNU extension function ACCESS(NAME, MODE)
48+
// TODO: not supported on Windows
49+
#ifndef _WIN32
4850
std::int64_t FORTRAN_PROCEDURE_NAME(access)(const char *name,
4951
std::int64_t nameLength, const char *mode, std::int64_t modeLength);
52+
#endif
5053

5154
} // extern "C"
5255
#endif // FORTRAN_RUNTIME_EXTENSIONS_H_

0 commit comments

Comments
 (0)