Skip to content

Commit

Permalink
move pcl_macros include higher to avoid clash with VTK's X11 header i…
Browse files Browse the repository at this point in the history
…nclusion
  • Loading branch information
Andrea Ponza committed Feb 17, 2020
1 parent 643d81a commit 660a2c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions common/include/pcl/pcl_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@
#include <boost/cstdint.hpp>
#include <boost/smart_ptr/shared_ptr.hpp>

//Eigen has an enum that clashes with X11 Success define, which is ultimately included by pcl
#ifdef Success
#undef Success
#endif
#include <Eigen/Core>
#include <Eigen/Core> // for EIGEN_MAKE_ALIGNED_OPERATOR_NEW

#include <pcl/pcl_config.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@

#pragma once

#include <pcl/pcl_macros.h>

#include <vector>

#include "vtkObject.h"
#include "vtkWeakPointer.h"

#include "vtkgl.h" // Needed for gl data types exposed in API
#include <pcl/pcl_macros.h>

class vtkCellArray;
class vtkDataArray;
Expand Down

0 comments on commit 660a2c4

Please sign in to comment.