Make sure vtk and vtkm types match when long and long long are both 8bytes.

Previously vtk would use long long and vtkm would use long, which would
cause nightmares when trying to do zero copy between the two libraries.
This commit is contained in:
Robert Maynard 2016-02-18 15:19:15 -05:00
parent ea817bc7b8
commit 8820c0fbc8

@ -126,12 +126,13 @@ typedef unsigned int UInt32;
#error Could not find a 32-bit integer.
#endif
#if VTKM_SIZE_LONG == 8
typedef signed long Int64;
typedef unsigned long UInt64;
#elif VTKM_SIZE_LONG_LONG == 8
//In this order so that we exactly match the logic that exists in VTK
#if VTKM_SIZE_LONG_LONG == 8
typedef signed long long Int64;
typedef unsigned long long UInt64;
#elif VTKM_SIZE_LONG == 8
typedef signed long Int64;
typedef unsigned long UInt64;
#else
#error Could not find a 64-bit integer.
#endif