diff options
| author | Jakob Kaivo <jkk@ung.org> | 2023-11-27 17:02:13 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2023-11-27 17:02:13 -0500 |
| commit | 44e872373e75bf291628ec81933562e579ca3398 (patch) | |
| tree | 796b824e8d974f5a280c367f0c9869637ed4c362 | |
| parent | 82acb2685351bac138327d5db5a9710b81765ac9 (diff) | |
mark __init_libc() as a constructor to satisfy GCC
| -rw-r--r-- | src/__main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/__main.c b/src/__main.c index 4f56efa0..b2aed8b5 100644 --- a/src/__main.c +++ b/src/__main.c @@ -4,6 +4,7 @@ #include "stdio/_stdio.h" #include "stdlib/_stdlib.h" +__attribute__((constructor)) void __init_libc(void) { static int init = 0; |
