From: Rich Felker Date: Sat, 3 Mar 2012 03:35:37 +0000 (-0500) Subject: fix nan/infinity macros in math.h, etc. X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=405ce58dcf59ecfb3e245fed0b96b1f35fbeaec1;hp=405ce58dcf59ecfb3e245fed0b96b1f35fbeaec1 fix nan/infinity macros in math.h, etc. the previous version not only failed to work in c++, but also failed to produce constant expressions, making the macros useless as initializers for objects of static storage duration. gcc 3.3 and later have builtins for these, which sadly seem to be the most "portable" solution. the alternative definitions produce exceptions (for NAN) and compiler warnings (for INFINITY) on newer versions of gcc. ---