]> git.saurik.com Git - wxWidgets.git/commit
Work around wxFinite() definition conflict with <cmath>.
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 9 Jul 2013 15:44:01 +0000 (15:44 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 9 Jul 2013 15:44:01 +0000 (15:44 +0000)
commitf256de112505e09777bfad8690338a09baa0ef8e
tree3a167fbdc8415e7b9338be6ff47a54ec8ee83eaa
parent2e6bfeb9035233b2889af03f7846d2c77125efb7
Work around wxFinite() definition conflict with <cmath>.

Using the GNU libstdc++ or Clang's libc++ implementations of the
standard library, <cmath> inclusion undefines the isfinite macro,
resulting in compilation errors when wxFinite() is used.  <cmath> can be
included unintentionally, e.g.  wx/hashmap.h may result in its inclusion
when using STD containers.

Work around this mess by checking if one of these <cmath>
implementations were already included and using std::isfinite() in that
case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/math.h