From ede1bfb1b70e3401def231490a0766acc420b964 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Thu, 19 Mar 2015 18:58:52 +0000
Subject: [PATCH] Add temporary HAVE_CSTDDEF, to make IPOpt happy

Seems to be a bug in IPOpt, or in our build system

[[Imported from SVN: r10086]]
---
 src/cosserat-continuum.cc       | 3 +++
 src/finite-strain-elasticity.cc | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/src/cosserat-continuum.cc b/src/cosserat-continuum.cc
index f58b4496..6a3f0171 100644
--- a/src/cosserat-continuum.cc
+++ b/src/cosserat-continuum.cc
@@ -4,6 +4,9 @@
 
 #include <fenv.h>
 
+// Hack to make IPOpt happy.  No idea why the build system doesn't properly handle this
+#define HAVE_CSTDDEF
+
 // Includes for the ADOL-C automatic differentiation library
 // Need to come before (almost) all others.
 #include <adolc/adouble.h>
diff --git a/src/finite-strain-elasticity.cc b/src/finite-strain-elasticity.cc
index 51244941..2ae6c03b 100644
--- a/src/finite-strain-elasticity.cc
+++ b/src/finite-strain-elasticity.cc
@@ -1,5 +1,8 @@
 #include <config.h>
 
+// Hack to make IPOpt happy.  No idea why the build system doesn't properly handle this
+#define HAVE_CSTDDEF
+
 // Includes for the ADOL-C automatic differentiation library
 // Need to come before (almost) all others.
 #include <adolc/adouble.h>
-- 
GitLab