Index: trunk/psLib/src/math/psMatrix.c
===================================================================
--- trunk/psLib/src/math/psMatrix.c	(revision 24092)
+++ trunk/psLib/src/math/psMatrix.c	(revision 24122)
@@ -526,5 +526,5 @@
 	    // search for the next pivot
 	    for (int row = 0; row < nSquare; row++) {
-		if (!finite(A[row][diag])) goto escape;
+		if (!isfinite(A[row][diag])) goto escape;
 
 		// if we have already operated on this row (pivot[row] is true), skip it
@@ -599,5 +599,5 @@
 	    // search for the next pivot
 	    for (int row = 0; row < nSquare; row++) {
-		if (!finite(A[row][diag])) goto escape;
+		if (!isfinite(A[row][diag])) goto escape;
 
 		// if we have already operated on this row (pivot[row] is true), skip it
