fix #3, remove inline keywords in QtAlignedMalloc (MSVC fix)

This commit is contained in:
Gael Guennebaud 2009-05-18 18:09:21 +02:00
parent e186728867
commit c8629e12f4

View File

@ -6,17 +6,17 @@
#if (!EIGEN_MALLOC_ALREADY_ALIGNED)
inline void *qMalloc(size_t size)
{
void *qMalloc(size_t size)
{std::cerr << "ok\n";
return Eigen::ei_aligned_malloc(size);
}
inline void qFree(void *ptr)
void qFree(void *ptr)
{
Eigen::ei_aligned_free(ptr);
}
inline void *qRealloc(void *ptr, size_t size)
void *qRealloc(void *ptr, size_t size)
{
void* newPtr = Eigen::ei_aligned_malloc(size);
memcpy(newPtr, ptr, size);