comparison third_party/raylib/glibc_compat.c @ 276:b55c22cff335

Add interactive infinite canvas prototype
author MrJuneJune <me@mrjunejune.com>
date Mon, 17 Aug 2026 16:57:56 -0700
parents
children
comparison
equal deleted inserted replaced
274:c9be578316a6 276:b55c22cff335
1 #include <stdarg.h>
2 #include <stdio.h>
3 #include <stdlib.h>
4
5 // Raylib 6 Linux binaries are built against glibc 2.38's C23 entry points.
6 // Keep older supported hosts working until the official binaries lower their baseline.
7 int __isoc23_sscanf(const char *input, const char *format, ...)
8 {
9 va_list args;
10 va_start(args, format);
11 int result = vsscanf(input, format, args);
12 va_end(args);
13 return result;
14 }
15
16 long __isoc23_strtol(const char *input, char **end, int base)
17 {
18 return strtol(input, end, base);
19 }
20
21 unsigned long __isoc23_strtoul(const char *input, char **end, int base)
22 {
23 return strtoul(input, end, base);
24 }