Mercurial
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/third_party/raylib/glibc_compat.c Mon Aug 17 16:57:56 2026 -0700 @@ -0,0 +1,24 @@ +#include <stdarg.h> +#include <stdio.h> +#include <stdlib.h> + +// Raylib 6 Linux binaries are built against glibc 2.38's C23 entry points. +// Keep older supported hosts working until the official binaries lower their baseline. +int __isoc23_sscanf(const char *input, const char *format, ...) +{ + va_list args; + va_start(args, format); + int result = vsscanf(input, format, args); + va_end(args); + return result; +} + +long __isoc23_strtol(const char *input, char **end, int base) +{ + return strtol(input, end, base); +} + +unsigned long __isoc23_strtoul(const char *input, char **end, int base) +{ + return strtoul(input, end, base); +}