Commit 0e902eec authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Fixed invalid #ifs in vtkByteSwap.

vtkByteSwap was looking for obsolete variables to add overloads for
long long or __int64. Fixed it using the same pattern as vtkType.h.
parent fa3af901
......@@ -245,11 +245,11 @@ VTK_BYTE_SWAP_IMPL(unsigned char)
VTK_BYTE_SWAP_IMPL(unsigned short)
VTK_BYTE_SWAP_IMPL(unsigned int)
VTK_BYTE_SWAP_IMPL(unsigned long)
#if defined(VTK_IMPL_USE_LONG_LONG)
#if defined(VTK_TYPE_USE_LONG_LONG)
VTK_BYTE_SWAP_IMPL(long long)
VTK_BYTE_SWAP_IMPL(unsigned long long)
#endif
#if defined(VTK_IMPL_USE___INT64)
#if defined(VTK_TYPE_USE___INT64)
VTK_BYTE_SWAP_IMPL(__int64)
VTK_BYTE_SWAP_IMPL(unsigned __int64)
#endif
......
......@@ -54,11 +54,11 @@ public:
VTK_BYTE_SWAP_DECL(unsigned short);
VTK_BYTE_SWAP_DECL(unsigned int);
VTK_BYTE_SWAP_DECL(unsigned long);
#if defined(VTK_DECL_USE_LONG_LONG)
#if defined(VTK_TYPE_USE_LONG_LONG)
VTK_BYTE_SWAP_DECL(long long);
VTK_BYTE_SWAP_DECL(unsigned long long);
#endif
#if defined(VTK_DECL_USE___INT64)
#if defined(VTK_TYPE_USE___INT64)
VTK_BYTE_SWAP_DECL(__int64);
VTK_BYTE_SWAP_DECL(unsigned __int64);
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment