From: bones_was_here Date: Thu, 7 Mar 2024 19:27:14 +0000 (+1000) Subject: Work around incomplete C11 support in Microsoft's stddef.h X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bd53aab2e0f8074511f9bbb85cabfb9a975cc0c9;p=xonotic%2Fdarkplaces.git Work around incomplete C11 support in Microsoft's stddef.h Closes https://github.com/DarkPlacesEngine/darkplaces/issues/126 Signed-off-by: bones_was_here --- diff --git a/zone.h b/zone.h index 42644a19..2225ec7c 100644 --- a/zone.h +++ b/zone.h @@ -27,6 +27,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "qdefs.h" #include "com_list.h" +// Work around incomplete C11 support in Microsoft's stddef.h +// This matches the Clang 14 header. Microsoft's double and long double are the same. +#if defined(_MSC_VER) + typedef double max_align_t; +#endif + extern qbool mem_bigendian; // div0: heap overflow detection paranoia