Commit c49b64bb authored by Ben Boeckel's avatar Ben Boeckel
Browse files

vtknetcdfcpp: mangle symbols

parent 774ee6f3
......@@ -21,7 +21,8 @@ target_include_directories(vtknetcdfcpp
set(headers
cxx/ncvalues.h
cxx/netcdfcpp.h)
cxx/netcdfcpp.h
cxx/vtk_netcdfcpp_mangle.h)
foreach (header IN LISTS headers)
get_filename_component(header_name "${header}" NAME)
......
......@@ -10,3 +10,4 @@ library within a single process.
* Removal of `config.h` since none of its symbols are used.
* Add a CMake build system to the project.
* Export symbols for Windows support.
* Mangle all exported symbols to have a `vtknetcdfcxx_` prefix.
......@@ -10,6 +10,7 @@
#ifndef Ncvalues_def
#define Ncvalues_def
#include "vtk_netcdfcpp_mangle.h"
#include "vtknetcdfcpp_export.h"
#include <iostream>
......
#ifndef NETCDFCPP_MANGLE
#define NETCDFCPP_MANGLE
#define NcAtt vtknetcdfcpp_NcAtt
#define NcDim vtknetcdfcpp_NcDim
#define NcError vtknetcdfcpp_NcError
#define NcFile vtknetcdfcpp_NcFile
#define NcTypedComponent vtknetcdfcpp_NcTypedComponent
#define NcValues vtknetcdfcpp_NcValues
#define NcValues_ vtknetcdfcpp_NcValues_
#define NcValues_char vtknetcdfcpp_NcValues_char
#define NcValues_double vtknetcdfcpp_NcValues_double
#define NcValues_float vtknetcdfcpp_NcValues_float
#define NcValues_int vtknetcdfcpp_NcValues_int
#define NcValues_long vtknetcdfcpp_NcValues_long
#define NcValues_ncbyte vtknetcdfcpp_NcValues_ncbyte
#define NcValues_nclong vtknetcdfcpp_NcValues_nclong
#define NcValues_short vtknetcdfcpp_NcValues_short
#define NcVar vtknetcdfcpp_NcVar
// Rederictions for the implementation.
#define vtknetcdfcpp_NcValuesdeclare NcValuesdeclare
#define vtknetcdfcpp_NcValuesimplement NcValuesimplement
#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