Add a preprocessor warning for C11 compatibility.

Adds a #warning if someone is trying to use TGRayMath without C11.
This commit is contained in:
JayLCypher 2024-07-18 12:41:54 +02:00
parent a74310c7be
commit d7c1d9ab37

View File

@ -3,6 +3,10 @@
#include "raymath.h" #include "raymath.h"
#endif #endif
#if __STDC_VERSION__ < 201112L
#warning _Generic is a C11 directive and requires at least C11 compatibility.
#endif
void tgrarted(void); void tgrarted(void);
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------