diff --git a/src/cosserat-continuum.cc b/src/cosserat-continuum.cc
index 51d1961efc09dd9aff88a0f47c28352824d83af4..6d6b58cff780381c7eee74081cb1cd7113cc644b 100644
--- a/src/cosserat-continuum.cc
+++ b/src/cosserat-continuum.cc
@@ -4,9 +4,6 @@
 
 #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 bf6c6b445e42ff6263f48f0d37a0cde0e1501e7b..c87b7c53668930a71f0b7c5d66dbfec6ea7898a3 100644
--- a/src/finite-strain-elasticity.cc
+++ b/src/finite-strain-elasticity.cc
@@ -1,8 +1,5 @@
 #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>
diff --git a/src/harmonicmaps.cc b/src/harmonicmaps.cc
index 449188ca7364fbe14cf5a2bb32bd6740e60eea46..4b35c648f03ddf5dac444f9220f0b622bb6ac606 100644
--- a/src/harmonicmaps.cc
+++ b/src/harmonicmaps.cc
@@ -2,9 +2,6 @@
 
 #include <fenv.h>
 
-// TODO: With cmake I need this hack to make IPOpt happy
-#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/mixed-cosserat-continuum.cc b/src/mixed-cosserat-continuum.cc
index 605ec545772d819f59766a0e8d19ec6920f0f969..ca211913498cda94b1181eaed54d93dc54870ad5 100644
--- a/src/mixed-cosserat-continuum.cc
+++ b/src/mixed-cosserat-continuum.cc
@@ -1,8 +1,5 @@
 #include <config.h>
 
-// Hack to make IPOpt happy.  No idea why the build system doesn't properly handle this
-#define HAVE_CSTDDEF
-
 #define SECOND_ORDER
 
 #include <fenv.h>
diff --git a/src/rod-eoc.cc b/src/rod-eoc.cc
index de8a21bdecb5f47526d27709c252a452dfb47694..1b14413b29d7f2ebd7b8fd5e0e18c02749e77d03 100644
--- a/src/rod-eoc.cc
+++ b/src/rod-eoc.cc
@@ -1,7 +1,5 @@
 #include <config.h>
 
-#define HAVE_CSTDDEF
-
 #include <dune/common/bitsetvector.hh>
 #include <dune/common/parametertree.hh>
 #include <dune/common/parametertreeparser.hh>
diff --git a/src/rodobstacle.cc b/src/rodobstacle.cc
index a99625fcfc3b9cfd40d5e633c96012e8911a4073..118383b6e08e57ae9f22a61715ee1cb54e275938 100644
--- a/src/rodobstacle.cc
+++ b/src/rodobstacle.cc
@@ -1,7 +1,5 @@
 #include <config.h>
 
-#define HAVE_CSTDDEF
-
 #include <dune/common/bitsetvector.hh>
 #include <dune/common/parametertree.hh>
 #include <dune/common/parametertreeparser.hh>