[Liblas-commits] hg: #ifdef the LAS_DLL exports so they are only exported on _MSC...

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Nov 2 10:53:10 EDT 2010


changeset 365fd6de26d8 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=365fd6de26d8
summary: #ifdef the LAS_DLL exports so they are only exported on _MSC_VER

diffstat:

 include/liblas/iterator.hpp  |  3 +++
 include/liblas/lasbounds.hpp |  5 ++++-
 2 files changed, 7 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r fc67f81addc4 -r 365fd6de26d8 include/liblas/iterator.hpp
--- a/include/liblas/iterator.hpp	Tue Nov 02 09:50:25 2010 -0500
+++ b/include/liblas/iterator.hpp	Tue Nov 02 09:53:06 2010 -0500
@@ -307,8 +307,11 @@
 /// Public specialization of LASWriter output iterator for liblas::LASPoint type.
 typedef writer_iterator<Point> laswriter_iterator;
 
+// Needed for C++ DLL exports
+#ifdef _MSC_VER
 template class LAS_DLL reader_iterator<Point>;
 template class LAS_DLL writer_iterator<Point>;
+#endif
 
 } // namespace liblas
 
diff -r fc67f81addc4 -r 365fd6de26d8 include/liblas/lasbounds.hpp
--- a/include/liblas/lasbounds.hpp	Tue Nov 02 09:50:25 2010 -0500
+++ b/include/liblas/lasbounds.hpp	Tue Nov 02 09:53:06 2010 -0500
@@ -129,7 +129,7 @@
     
     bool empty(void) const 
     {
-        return min==std::numeric_limits<T>::max() && max==std::numeric_limits<T>::min();
+        return detail::compare_distance(min, std::numeric_limits<T>::max()) && detail::compare_distance(max, std::numeric_limits<T>::min());
     }
     
     void shift(T v) 
@@ -588,7 +588,10 @@
 
 } // namespace liblas
 
+// Needed for C++ DLL exports
+#ifdef _MSC_VER
 template class LAS_DLL liblas::Range<double>;
 template class LAS_DLL liblas::Bounds<double>;
+#endif
 
 #endif // ndef LIBLAS_LASBOUNDS_HPP_INCLUDED


More information about the Liblas-commits mailing list