diff --git a/Common/Core/vtkDeprecation.h b/Common/Core/vtkDeprecation.h index 3937972971b8148687df931d69df57c057e5ff8d..33cfeb792208d9bddc288b9c76220407e5ac3e47 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)))