Move #include <glm/gtx/span.hpp> into version check

This commit is contained in:
Abit Gray 2025-02-14 20:28:09 +01:00
parent 65654cb3e5
commit ab646d553b

View file

@ -3,10 +3,11 @@
#include <glm/ext/vector_relational.hpp>
#include <glm/glm.hpp>
#if (GLM_LANG & GLM_LANG_CXX20_FLAG) && defined(__cpp_lib_span) && __cpp_lib_span >= 202002L
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/span.hpp>
#if (GLM_LANG & GLM_LANG_CXX20_FLAG) && defined(__cpp_lib_span) && __cpp_lib_span >= 202002L
static int test_span_vec2()
{
int Error = 0;