From d2dcca52a3f27a1ae7cea5c616cde2d56955c7b7 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 2 Feb 2009 13:24:17 +0000 Subject: [PATCH] backport 920106: BSD's don't have aligned malloc --- Eigen/src/Core/util/Memory.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index 3f30bca56..8afd81828 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -2,7 +2,7 @@ // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008 Gael Guennebaud -// Copyright (C) 2006-2008 Benoit Jacob +// Copyright (C) 2008-2009 Benoit Jacob // Copyright (C) 2009 Kenneth Riddile // // Eigen is free software; you can redistribute it and/or @@ -27,8 +27,7 @@ #ifndef EIGEN_MEMORY_H #define EIGEN_MEMORY_H -// for NetBSD I didn't see any clear statement in the docs, but Mark Davies is confident about this. -#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(_WIN64) +#if defined(__APPLE__) || defined(_WIN64) #define EIGEN_MALLOC_ALREADY_ALIGNED 1 #else #define EIGEN_MALLOC_ALREADY_ALIGNED 0