fixes #5 : freebsd really has aligned malloc

This commit is contained in:
Benoit Jacob 2009-05-22 23:54:52 +02:00
parent 7667a93cbe
commit 42848498aa
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
// This file is part of Eigen, a lightweight C++ template library // This file is part of Eigen, a lightweight C++ template library
// for linear algebra. Eigen itself is part of the KDE project. // for linear algebra.
// //
// Copyright (C) 2009 Gael Guennebaud <g.gael@free.fr> // Copyright (C) 2009 Gael Guennebaud <g.gael@free.fr>
// //

View File

@ -27,7 +27,7 @@
#ifndef EIGEN_MEMORY_H #ifndef EIGEN_MEMORY_H
#define EIGEN_MEMORY_H #define EIGEN_MEMORY_H
#if defined(__APPLE__) || defined(_WIN64) #if defined(__APPLE__) || defined(_WIN64) || defined (__FreeBSD__)
#define EIGEN_MALLOC_ALREADY_ALIGNED 1 #define EIGEN_MALLOC_ALREADY_ALIGNED 1
#else #else
#define EIGEN_MALLOC_ALREADY_ALIGNED 0 #define EIGEN_MALLOC_ALREADY_ALIGNED 0