OSX: buildfix for itask on 10.5.sdk

This commit is contained in:
Jens Verwiebe 2011-11-15 21:55:07 +00:00
parent 8db117a81a
commit bff59a5b2e
2 changed files with 10 additions and 1 deletions

@ -35,8 +35,12 @@ namespace KDL {
*/
class Chain {
private:
#if !defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_5)
// Eigen allocator is needed for alignment of Eigen data types
std::vector<Segment, Eigen::aligned_allocator<Segment> > segments;
#else
std::vector<Segment> segments;
#endif
unsigned int nrOfJoints;
unsigned int nrOfSegments;
public:

@ -27,15 +27,20 @@
#include <string>
#include <map>
#if !defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_5)
#include <Eigen/Core>
#endif
namespace KDL
{
//Forward declaration
class TreeElement;
#if !defined(__APPLE__) && !defined(MAC_OS_X_VERSION_10_5)
// 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;
#else
typedef std::map<std::string,TreeElement> SegmentMap;
#endif
class TreeElement
{
private: