From e5c3c55e17e498459a1464ddc7a8730ac2757775 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 11 Aug 2023 23:21:01 +0300 Subject: [PATCH] Update userspace for mlibc support --- .vscode/c_cpp_properties.json | 2 -- libs/libinit/printf.c | 2 +- mlibc | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 08b1e736..a8297824 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -3,7 +3,6 @@ { "name": "Fennix x64 (Linux, GCC, debug)", "includePath": [ - "${workspaceFolder}/libc/include/**", "${workspaceFolder}/out/include/**", "${workspaceFolder}/libs/include/**", "${workspaceFolder}/libs/include" @@ -55,7 +54,6 @@ { "name": "Fennix x32 (Linux, GCC, debug)", "includePath": [ - "${workspaceFolder}/libc/include/**", "${workspaceFolder}/out/include/**", "${workspaceFolder}/libs/include/**", "${workspaceFolder}/libs/include" diff --git a/libs/libinit/printf.c b/libs/libinit/printf.c index 81ab3673..a680dd85 100644 --- a/libs/libinit/printf.c +++ b/libs/libinit/printf.c @@ -222,7 +222,7 @@ typedef long printf_signed_value_t; // precisions, offsets into buffers used for printing and the sizes // of these buffers. instead, we use: typedef unsigned int printf_size_t; -#define PRINTF_MAX_POSSIBLE_BUFFER_SIZE INT_MAX +#define PRINTF_MAX_POSSIBLE_BUFFER_SIZE __INT_MAX__ // If we were to nitpick, this would actually be INT_MAX + 1, // since INT_MAX is the maximum return value, which excludes the // trailing '\0'. diff --git a/mlibc b/mlibc index e441e783..77f7b4d3 160000 --- a/mlibc +++ b/mlibc @@ -1 +1 @@ -Subproject commit e441e78343be6824eb98ae3519f8777d16fe03b4 +Subproject commit 77f7b4d310c05c82d64899f2186558f5abbcdded