This commit is contained in:
William Hjelm 2022-09-23 15:55:20 +02:00
commit e4ecca9b7f
2 changed files with 9 additions and 1 deletions

View File

@ -19,8 +19,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#include "ffx_assert.h"
#include <stdlib.h> // for malloc()
#include "ffx_assert.h"
#ifdef _WIN32
#ifndef WIN32_LEAN_AND_MEAN

View File

@ -32,6 +32,14 @@
#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__
#pragma clang diagnostic ignored "-Wunused-variable"
#endif