Fixed use of isfinite and _isfinite
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 4 Jan 2012 03:47:05 +0000 (14:47 +1100)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 10 Jan 2012 14:06:35 +0000 (01:06 +1100)
commit9181e378f19cb42ec3860c5b86d142c78e836124
tree59ecc50dd6c4cfa22646fc994b602d78623decf7
parent30dcb960b40f499869ab0015d1779ed90268db7d
Fixed use of isfinite and _isfinite

Implemented proper CMake tests for the above functionality.
Catered for MSVC idiosyncratic _finite() function. Removed
erroneous use of HAS_ISFINITE and HAS__ISFINITE.
Encapsulated the use of preprocessor directives into the new
gmx_isfinite() function so the programmer doesn't need to
know about the foregoing mess.

The previous versions resulted in unreachable code.

Change-Id: I7471388ed8f402c3f8b664e7846465de4b85f578
CMakeLists.txt
cmake/gmxTestIsfinite.cmake [new file with mode: 0644]
include/maths.h
src/config.h.cmakein
src/gmxlib/maths.c
src/mdlib/clincs.c
src/tools/geminate.c