From adeb0c2b547df69a8ae15f08df5471858a2d26ad Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer <akohlmey@gmail.com> Date: Thu, 8 Nov 2018 14:17:51 -0500 Subject: [PATCH] replace faulty preprocessor logic fixes #1196 --- src/USER-VTK/dump_vtk.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/USER-VTK/dump_vtk.cpp b/src/USER-VTK/dump_vtk.cpp index edbc647a81..88e95dd338 100644 --- a/src/USER-VTK/dump_vtk.cpp +++ b/src/USER-VTK/dump_vtk.cpp @@ -93,10 +93,10 @@ enum{VTK,VTP,VTU,PVTP,PVTU}; // file formats #define ONEFIELD 32 #define DELTA 1048576 -#if VTK_MAJOR_VERSION >= 7 -#define InsertNextTupleValue InsertNextTypedTuple -#elif VTK_MAJOR_VERSION > 8 +#if (VTK_MAJOR_VERSION < 5) || (VTK_MAJOR_VERSION > 8) #error This code has only been tested with VTK 5, 6, 7, and 8 +#elif VTK_MAJOR_VERSION > 6 +#define InsertNextTupleValue InsertNextTypedTuple #endif /* ---------------------------------------------------------------------- */ -- GitLab