From aacca8f6207f8ed917019a75cd16b9aeb8970385 Mon Sep 17 00:00:00 2001 From: Mathieu Westphal <mathieu.westphal@kitware.com> Date: Thu, 20 Feb 2025 16:15:43 +0100 Subject: [PATCH] vtkDeprecation: Use [[deprecated]] for Windows --- Common/Core/vtkDeprecation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/Core/vtkDeprecation.h b/Common/Core/vtkDeprecation.h index 3937972971b..33cfeb79220 100644 --- a/Common/Core/vtkDeprecation.h +++ b/Common/Core/vtkDeprecation.h @@ -74,7 +74,7 @@ #define VTK_DEPRECATION(reason) [[vtk::deprecated(reason)]] #else #if defined(_WIN32) || defined(_WIN64) -#define VTK_DEPRECATION(reason) __declspec(deprecated(reason)) +#define VTK_DEPRECATION(reason) [[deprecated(reason)]] #elif defined(__clang__) #if __has_extension(attribute_deprecated_with_message) #define VTK_DEPRECATION(reason) __attribute__((__deprecated__(reason))) -- GitLab