Skip to content

Commit 8884d57

Browse files
committed
add our own export.hpp for situations where PDAL didn't provide it
1 parent 284a782 commit 8884d57

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

src/pdal/filters/export.hpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#pragma once
2+
3+
4+
#ifdef _WIN32
5+
# define PDAL_EXPORT __declspec(dllexport)
6+
# define PDAL_LOCAL
7+
# define PDAL_EXPORT_UNIX
8+
#ifdef __GNUC__
9+
# define PDAL_EXPORT_DEPRECATED __attribute__((deprecated)) PDAL_EXPORT
10+
#else
11+
# define PDAL_EXPORT_DEPRECATED __declspec(deprecated, dllexport)
12+
#endif
13+
#else
14+
# define PDAL_EXPORT __attribute__ ((visibility("default")))
15+
// Keep the PDAL_DLL name around so any external plugins that still might have that defined
16+
// can still compile and be used
17+
# define PDAL_DLL PDAL_EXPORT
18+
# define PDAL_LOCAL __attribute__((visibility("hidden")))
19+
# define PDAL_EXPORT_UNIX __attribute__ ((visibility("default")))
20+
# define PDAL_EXPORT_DEPRECATED __attribute__((deprecated))
21+
#endif // _WIN32

src/pdal/test/NumpyReaderTest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434

3535
#include <pdal/pdal_test_main.hpp>
3636

37+
#include "../filters/export.hpp"
38+
3739
#include <pdal/PipelineManager.hpp>
3840
#include <pdal/StageFactory.hpp>
3941
#include <pdal/filters/StatsFilter.hpp>

src/pdal/test/PythonFilterTest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434

3535
#include <pdal/pdal_test_main.hpp>
3636

37+
#include "../filters/export.hpp"
38+
3739
#include <pdal/PipelineManager.hpp>
3840
#include <pdal/StageFactory.hpp>
3941
#include <pdal/io/FauxReader.hpp>

0 commit comments

Comments
 (0)