From: LinuxLegend Date: Mon, 28 Mar 2022 11:13:39 +0000 (-0600) Subject: Added check for STDC Version X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=3d4e0f8ad3004f4427ec2411e8f0c96f774c23d7;p=jp%2Fvkhelpers.git Added check for STDC Version --- diff --git a/include/vkh.h b/include/vkh.h index 5436943..700d46a 100644 --- a/include/vkh.h +++ b/include/vkh.h @@ -30,12 +30,13 @@ extern "C" { #include -#if defined(STDC_NO_THREADS) -#include "deps/tinycthread.h" -#else +#if __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_THREADS__) // For platforms outside of Windows, Threads.h is provided for by compiler that supports C11 standard. #include +#else +#include "deps/tinycthread.h" #endif + typedef enum VmaMemoryUsage VmaMemoryUsage; #include