Skip to content

Commit

Permalink
Fix deprecated boost endians.
Browse files Browse the repository at this point in the history
  • Loading branch information
vcarpani committed Jan 24, 2019
1 parent 99a5b28 commit dbadf41
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions common/include/pcl/PCLPointCloud2.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

#ifdef USE_ROS
#error USE_ROS setup requires PCL to compile against ROS message headers, which is now deprecated
#endif
#endif

#include <string>
#include <vector>
#include <ostream>
#include <boost/detail/endian.hpp>
#include <boost/predef/other/endian.h>

// Include the correct Header path here
#include <pcl/PCLHeader.h>
Expand All @@ -22,9 +22,9 @@ namespace pcl
is_bigendian (false), point_step (0), row_step (0),
data (), is_dense (false)
{
#if defined(BOOST_BIG_ENDIAN)
#if BOOST_ENDIAN_BIG_BYTE
is_bigendian = true;
#elif defined(BOOST_LITTLE_ENDIAN)
#elif BOOST_ENDIAN_LITTLE_BYTE
is_bigendian = false;
#else
#error "unable to determine system endianness"
Expand Down
10 changes: 5 additions & 5 deletions io/include/pcl/io/ply/byte_order.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
*
* $Id$
*
*/

#pragma once

#include <boost/detail/endian.hpp>
#include <boost/predef/other/endian.h>

namespace pcl
{
Expand All @@ -57,16 +57,16 @@ namespace pcl
{
little_endian_byte_order,
big_endian_byte_order,
#if defined(BOOST_BIG_ENDIAN)
#if BOOST_ENDIAN_BIG_BYTE
host_byte_order = big_endian_byte_order,
#elif defined(BOOST_LITTLE_ENDIAN)
#elif BOOST_ENDIAN_LITTLE_BYTE
host_byte_order = little_endian_byte_order,
#else
#error "unable to determine system endianness"
#endif
network_byte_order = big_endian_byte_order
};

template <std::size_t N>
void swap_byte_order (char* bytes);

Expand Down

0 comments on commit dbadf41

Please sign in to comment.