From c3489535afabaac8722a0632b18a2ad797747663 Mon Sep 17 00:00:00 2001 From: Jefferson Amstutz Date: Wed, 1 Nov 2023 20:39:48 -0500 Subject: [PATCH] adjustments for upcoming ANARI-SDK changes --- vtkm/interop/anari/VtkmANARITypes.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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.