The intrin.h header needs to be included after cmath in order to prevent warnigns.

Fixed (hopefully) final Index realted warnings.
This commit is contained in:
Hauke Heibel
2010-06-21 18:39:24 +02:00
parent 80b6e5f278
commit 4bac6fbe1e
3 changed files with 14 additions and 9 deletions

View File

@@ -118,10 +118,6 @@
#endif
#endif
#ifdef _MSC_VER
#include <intrin.h> // required for __cpuid
#endif
#if (defined _OPENMP) && (!defined EIGEN_DONT_PARALLELIZE)
#define EIGEN_HAS_OPENMP
#endif
@@ -148,6 +144,11 @@
#include<iostream>
#endif
// required for __cpuid, needs to be included after cmath
#ifdef _MSC_VER
#include <intrin.h>
#endif
#if (defined(_CPPUNWIND) || defined(__EXCEPTIONS)) && !defined(EIGEN_NO_EXCEPTIONS)
#define EIGEN_EXCEPTIONS
#endif