diff --git a/src/USER-VTK/dump_vtk.cpp b/src/USER-VTK/dump_vtk.cpp index edbc647a81857c954ac4ed902d98de4063975b84..88e95dd338382fc2d620ba25bfe313f267711356 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 /* ---------------------------------------------------------------------- */