Skip to content

Commit bcab1aa

Browse files
authored
Merge pull request #3525 from compnerd/windows-argc-argv-indirection
stdlib: repair windows build
2 parents 38362bb + 5137f8b commit bcab1aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stdlib/public/stubs/CommandLine.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ extern "C" char ** _swift_stdlib_getUnsafeArgvArgc(int *outArgLen) {
9090
return outBuf;
9191
}
9292
#elif defined (_MSC_VER)
93-
extern int *__argc;
94-
extern char **__argv;
93+
#include <stdlib.h>
9594

9695
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_INTERFACE
9796
extern "C" char ** _swift_stdlib_getUnsafeArgvArgc(int *outArgLen) {

0 commit comments

Comments
 (0)