From d7c1d9ab370f5f33257d801e1b55e76dc420374e Mon Sep 17 00:00:00 2001 From: JayLCypher Date: Thu, 18 Jul 2024 12:41:54 +0200 Subject: [PATCH] Add a preprocessor warning for C11 compatibility. Adds a #warning if someone is trying to use TGRayMath without C11. --- src/tgraymath.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tgraymath.h b/src/tgraymath.h index 66a48d5b4..db210a286 100644 --- a/src/tgraymath.h +++ b/src/tgraymath.h @@ -3,6 +3,10 @@ #include "raymath.h" #endif +#if __STDC_VERSION__ < 201112L +#warning _Generic is a C11 directive and requires at least C11 compatibility. +#endif + void tgrarted(void); //----------------------------------------------------------------------------------