Add _countof when not compiling with MSVS
This commit is contained in:
parent
f8b3d1b2c3
commit
a771a9247f
|
@ -32,6 +32,14 @@
|
||||||
|
|
||||||
#include "ffx_fsr2_maximum_bias.h"
|
#include "ffx_fsr2_maximum_bias.h"
|
||||||
|
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
template < typename T, size_t N >
|
||||||
|
size_t _countof(T(&arr)[N])
|
||||||
|
{
|
||||||
|
return std::extent< T[N] >::value;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic ignored "-Wunused-variable"
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user