2019-04-15 23:24:21 +00:00
|
|
|
//============================================================================
|
2018-01-03 19:35:00 +00:00
|
|
|
// Copyright (c) Kitware, Inc.
|
|
|
|
// All rights reserved.
|
|
|
|
// See LICENSE.txt for details.
|
|
|
|
//
|
|
|
|
// This software is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
// PURPOSE. See the above copyright notice for more information.
|
2019-04-15 23:24:21 +00:00
|
|
|
//============================================================================
|
2018-01-03 19:35:00 +00:00
|
|
|
#ifndef vtkm_diy_h
|
|
|
|
#define vtkm_diy_h
|
|
|
|
|
2018-02-22 14:59:15 +00:00
|
|
|
#include <vtkm/internal/Configure.h>
|
|
|
|
|
2018-09-14 19:37:38 +00:00
|
|
|
// Diy headers include windows.h. Use the following header file so that only the
|
|
|
|
// lean version of windows.h is included.
|
|
|
|
// (Without problematic macros like MIN, Max, GetMessage, etc)
|
|
|
|
#include <vtkm/internal/Windows.h>
|
|
|
|
|
2018-01-03 19:35:00 +00:00
|
|
|
/* Use the diy library configured for VTM-m. */
|
|
|
|
#cmakedefine01 VTKM_USE_EXTERNAL_DIY
|
|
|
|
|
2019-02-05 16:02:29 +00:00
|
|
|
/* Need to provide a way to for Serialziation
|
|
|
|
* specializations to be injected into the correct
|
|
|
|
* namespace. This solves the issue while allowing
|
|
|
|
* for VTK-m to support an internal and external diy
|
|
|
|
* existing at the same time. */
|
|
|
|
#if(VTKM_USE_EXTERNAL_DIY)
|
|
|
|
# define mangled_diy_namespace diy
|
2018-01-03 19:35:00 +00:00
|
|
|
#else
|
2019-02-05 16:02:29 +00:00
|
|
|
# define mangled_diy_namespace vtkmdiy
|
2018-01-03 19:35:00 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|