[devel] Guard "modf()" with PNG_FLOATING_ARITHMETIC_SUPPORTED.
diff --git a/png.c b/png.c
index cce7a00..4dadc6d 100644
--- a/png.c
+++ b/png.c
@@ -1155,10 +1155,16 @@
         	* that the final digit is rounded.
         	*/
                if (cdigits+czero-clead+1 < (int)precision)
+#ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
         	  fp = modf(fp, &d);
+#else
+               {
+        	  d = (double)((int)(fp));
+                  fp -= d;
+               }
+#endif
                else
                {
-        	  /* End of loop - round the whole number. */
 #ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED
         	  d = floor(fp + .5);
 #else