Skip to content

Commit

Permalink
Identify default mingw runtime (mingw builds only).
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphus committed Nov 20, 2023
1 parent ed197f4 commit 65fe10b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions win32/configure/rt.c
@@ -0,0 +1,15 @@
/*
Print the default runtime. $Config{libc}
will be set to this specified value.
*/
#include <stdio.h>
#include <stddef.h>

int main(void) {
#if defined(_UCRT)
printf("-lucrt\n");
#else
printf("-lmsvcrt\n");
#endif
return 0;
}

0 comments on commit 65fe10b

Please sign in to comment.