Ensure we don't #define constants before system headers
authorMark Abraham <mark.j.abraham@gmail.com>
Mon, 20 Jan 2014 21:07:36 +0000 (22:07 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 21 Jan 2014 16:57:57 +0000 (17:57 +0100)
commit16a4e75179aeefe66595b9816f8c413859de79e3
treeb7cfc076b823754f6c901df51d6bdbfd18a8ae12
parentb654724cac05a95758b9f92e05e29856a0681939
Ensure we don't #define constants before system headers

For whatever reason, some older libc (e.g. as found on BG/Q login
nodes) live life such that they unilaterally #define some of the same
M_* constants that we do. If we ever #include <math.h> after
"gromacs/math/utilities.h" then those constants can differ and cause
compilation errors, because we've double-crossed our own #ifndef
attempts.

Change-Id: I4bd6d80e87489cc6f616ce0fb4260a0ac4f9e111
src/gromacs/math/utilities.h