From 4224e2457b16a221f976d25cb5da9e53ce3c20e6 Mon Sep 17 00:00:00 2001 From: "Cameron Armstrong (Nightfox)" Date: Sat, 22 Jun 2024 17:50:41 +0800 Subject: [PATCH] Fix conflicting types for 'locale_t' error when including math.h and locale.h --- .gitignore | 1 + library/include/locale.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0d0e43c7..859dcdbe 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /library/compiler.log /library/netinclude *.map +.vscode \ No newline at end of file diff --git a/library/include/locale.h b/library/include/locale.h index 66e50fe1..7e6ca690 100644 --- a/library/include/locale.h +++ b/library/include/locale.h @@ -59,7 +59,8 @@ extern "C" { /****************************************************************************/ -typedef void *locale_t; +struct __locale_t; +typedef struct __locale_t *locale_t; /****************************************************************************/