From 527c74ed63a3f1f4630afb946ef998d107a8adf3 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Mon, 23 Mar 2015 10:21:43 +0000 Subject: [PATCH] Do not set HAVE_CSTDDEF by hand That really was a hack: the build system should do it. [[Imported from SVN: r10111]] --- src/cosserat-continuum.cc | 3 --- src/finite-strain-elasticity.cc | 3 --- src/harmonicmaps.cc | 3 --- src/mixed-cosserat-continuum.cc | 3 --- src/rod-eoc.cc | 2 -- src/rodobstacle.cc | 2 -- 6 files changed, 16 deletions(-) diff --git a/src/cosserat-continuum.cc b/src/cosserat-continuum.cc index 51d1961e..6d6b58cf 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 bf6c6b44..c87b7c53 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 449188ca..4b35c648 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 605ec545..ca211913 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 de8a21bd..1b14413b 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 a99625fc..118383b6 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> -- GitLab