Fix name collision of min/max with C++ std::min/std::max
authorRoland Schulz <roland@utk.edu>
Fri, 9 Dec 2011 20:22:05 +0000 (15:22 -0500)
committerRoland Schulz <roland@utk.edu>
Sun, 11 Dec 2011 21:14:03 +0000 (16:14 -0500)
commit6073a8b707a3fd1afa31d7536342938781e2eb84
treee3d400be6b38f913803b920bd840920e22e2a3e7
parentb1984d0a5393ae989febc8b87aeea00efc783e21
Fix name collision of min/max with C++ std::min/std::max

min/max is defined as the macro for C compililation and
as std::min/std::max for C++ compilation. New C++ code should not depend
on this so removed macros.h from other headers and added it where
needed. Removed hacks from existing C++ files where they were no longer
necessary.

Fixes issue #806.

Change-Id: I612d00e092ef4979a5a50b4e2d56fb767a04041e
47 files changed:
src/gromacs/analysisdata/modules/plot.cpp
src/gromacs/gmxlib/enxio.c
src/gromacs/gmxlib/pargs.c
src/gromacs/gmxlib/pbc.c
src/gromacs/gmxlib/txtdump.c
src/gromacs/gmxlib/typedefs.c
src/gromacs/gmxpreprocess/add_par.c
src/gromacs/gmxpreprocess/gen_vsite.c
src/gromacs/gmxpreprocess/genhydro.c
src/gromacs/gmxpreprocess/gpp_bond_atomtype.h
src/gromacs/gmxpreprocess/h_db.c
src/gromacs/gmxpreprocess/hackblock.c
src/gromacs/gmxpreprocess/vsite_parm.c
src/gromacs/legacyheaders/gpp_atomtype.h
src/gromacs/legacyheaders/grompp.h
src/gromacs/legacyheaders/macros.h
src/gromacs/legacyheaders/vec.h
src/gromacs/mdlib/constr.c
src/gromacs/mdlib/domdec.c
src/gromacs/mdlib/ewald.c
src/gromacs/mdlib/md_support.c
src/gromacs/mdlib/mdebin.c
src/gromacs/mdlib/pme.c
src/gromacs/mdlib/pull.c
src/gromacs/mdlib/pull_rotation.c
src/gromacs/mdlib/shellfc.c
src/gromacs/selection/compiler.cpp
src/gromacs/selection/params.cpp
src/gromacs/selection/sm_insolidangle.cpp
src/gromacs/selection/tests/selectioncollection.cpp
src/gromacs/trajectoryanalysis/modules/angle.cpp
src/gromacs/trajectoryanalysis/modules/distance.cpp
src/programs/grompp/gpp_tomorse.h
src/programs/grompp/tomorse.c
src/programs/mdrun/runner.c
src/programs/mdrun/xutils.c
src/programs/pdb2gmx/hizzie.c
src/programs/pdb2gmx/pdb2gmx.c
src/programs/pdb2gmx/specbond.c
src/tools/g_anadock.c
src/tools/gmx_current.c
src/tools/gmx_density.c
src/tools/gmx_dyndom.c
src/tools/gmx_pme_error.c
src/tools/gmx_spatial.c
src/tools/gmx_tune_pme.c
src/tools/gmx_wham.c