Export symbol as VTK_IO_EXPORT.

This commit is contained in:
Nick 2020-04-28 09:12:11 -04:00
parent 1a16299b8c
commit 54e15e8f14
2 changed files with 5 additions and 3 deletions

@ -11,6 +11,7 @@
#define vtk_m_io_DecodePNG_h
#include <vtkm/Types.h>
#include <vtkm/io/vtkm_io_export.h>
#include <vector>
@ -24,7 +25,7 @@ namespace io
/// no matter what color type the original PNG image had. This gives predictable,
/// usable data from any random input PNG.
///
VTKM_ALWAYS_EXPORT
VTKM_IO_EXPORT
vtkm::UInt32 DecodePNG(std::vector<unsigned char>& out_image,
unsigned long& image_width,
unsigned long& image_height,

@ -11,6 +11,7 @@
#define vtk_m_io_EncodePNG_h
#include <vtkm/Types.h>
#include <vtkm/io/vtkm_io_export.h>
#include <vector>
@ -19,14 +20,14 @@ namespace vtkm
namespace io
{
VTKM_ALWAYS_EXPORT
VTKM_IO_EXPORT
vtkm::UInt32 EncodePNG(std::vector<unsigned char> const& image,
unsigned long width,
unsigned long height,
unsigned char* out_png,
std::size_t out_size);
VTKM_ALWAYS_EXPORT
VTKM_IO_EXPORT
vtkm::UInt32 SavePNG(std::string const& filename,
std::vector<unsigned char> const& image,
unsigned long width,