OS X: remove code for OS X <= 10.5, which is already not supported since 2 years.
This commit is contained in:
@@ -35,17 +35,8 @@ namespace KDL {
|
||||
*/
|
||||
class Chain {
|
||||
private:
|
||||
#if defined(__APPLE__)
|
||||
# if MAC_OS_X_VERSION_MIN_REQUIRED <= 1050
|
||||
std::vector<Segment> segments;
|
||||
# else
|
||||
// Eigen allocator is needed for alignment of Eigen data types
|
||||
std::vector<Segment, Eigen::aligned_allocator<Segment> > segments;
|
||||
# endif /* MAC_OS_X_VERSION_MIN_REQUIRED */
|
||||
#else
|
||||
// Eigen allocator is needed for alignment of Eigen data types
|
||||
std::vector<Segment, Eigen::aligned_allocator<Segment> > segments;
|
||||
#endif
|
||||
unsigned int nrOfJoints;
|
||||
unsigned int nrOfSegments;
|
||||
public:
|
||||
|
@@ -27,26 +27,14 @@
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
#if defined(__APPLE__)
|
||||
# if MAC_OS_X_VERSION_MIN_REQUIRED <= 1050
|
||||
//no include
|
||||
# else
|
||||
# include <Eigen/Core>
|
||||
# endif /* MAC_OS_X_VERSION_MIN_REQUIRED */
|
||||
#else
|
||||
# include <Eigen/Core>
|
||||
#endif
|
||||
#include <Eigen/Core>
|
||||
|
||||
namespace KDL
|
||||
{
|
||||
//Forward declaration
|
||||
class TreeElement;
|
||||
#if defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED <= 1050
|
||||
typedef std::map<std::string,TreeElement> SegmentMap;
|
||||
#else
|
||||
// Eigen allocator is needed for alignment of Eigen data types
|
||||
typedef std::map<std::string,TreeElement, std::less<std::string>, Eigen::aligned_allocator<std::pair<std::string, TreeElement> > > SegmentMap;
|
||||
#endif
|
||||
|
||||
class TreeElement
|
||||
{
|
||||
|
Reference in New Issue
Block a user