diff --git a/vtkm/interop/anari/VtkmANARITypes.h b/vtkm/interop/anari/VtkmANARITypes.h index 1b194d412..375471322 100644 --- a/vtkm/interop/anari/VtkmANARITypes.h +++ b/vtkm/interop/anari/VtkmANARITypes.h @@ -15,15 +15,17 @@ #include // anari #include -#if ANARI_SDK_VERSION_MINOR <= 3 -#include -#endif +#include namespace anari_cpp = ::anari; namespace anari { +#if ANARI_SDK_VERSION_MINOR >= 8 +using namespace ::anari::math; +#endif + /// These declarations let ANARI C++ bindings infer the correct `ANARIDataType` /// enum value from VTK-m's C++ math types. This header should be included /// before any code which needs this type inference to function.