replace faulty preprocessor logic

fixes #1196
This commit is contained in:
Axel Kohlmeyer
2018-11-08 14:17:51 -05:00
parent 1651a21f92
commit adeb0c2b54

View File

@ -93,10 +93,10 @@ enum{VTK,VTP,VTU,PVTP,PVTU}; // file formats
#define ONEFIELD 32 #define ONEFIELD 32
#define DELTA 1048576 #define DELTA 1048576
#if VTK_MAJOR_VERSION >= 7 #if (VTK_MAJOR_VERSION < 5) || (VTK_MAJOR_VERSION > 8)
#define InsertNextTupleValue InsertNextTypedTuple
#elif VTK_MAJOR_VERSION > 8
#error This code has only been tested with VTK 5, 6, 7, and 8 #error This code has only been tested with VTK 5, 6, 7, and 8
#elif VTK_MAJOR_VERSION > 6
#define InsertNextTupleValue InsertNextTypedTuple
#endif #endif
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */