diff options
Diffstat (limited to 'test/nomalloc.cpp')
-rw-r--r-- | test/nomalloc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/nomalloc.cpp b/test/nomalloc.cpp index 82119e9b3..5497ca339 100644 --- a/test/nomalloc.cpp +++ b/test/nomalloc.cpp @@ -24,7 +24,9 @@ // Eigen. If not, see <http://www.gnu.org/licenses/>. // this hack is needed to make this file compiles with -pedantic (gcc) +#ifdef __GNUC__ #define throw(X) +#endif // discard stack allocation as that too bypasses malloc #define EIGEN_STACK_ALLOCATION_LIMIT 0 // any heap allocation will raise an assert |