From 95bf896b10173e0f5bc3f06eb765fdae2fa421c3 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Fri, 8 Mar 2024 12:55:01 +0200 Subject: [PATCH] [CRT] crtdefs.h: Wrap localeinfo_struct in ifdef This prevents a redefinition error, when GCC 13 host headers are included when compiling c++ code. --- sdk/include/crt/crtdefs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/include/crt/crtdefs.h b/sdk/include/crt/crtdefs.h index bf01188fe9f..6eb0acae37a 100644 --- a/sdk/include/crt/crtdefs.h +++ b/sdk/include/crt/crtdefs.h @@ -438,10 +438,13 @@ typedef struct threadmbcinfostruct *pthreadmbcinfo; struct __lc_time_data; +#ifndef DEFINED_localeinfo_struct typedef struct localeinfo_struct { pthreadlocinfo locinfo; pthreadmbcinfo mbcinfo; }_locale_tstruct,*_locale_t; +#define DEFINED_localeinfo_struct 1 +#endif #ifdef __cplusplus }