fix Issue 11785 - Order of method/function declarations has an effect on compilation result
Update port.c

::isnan() and ::isinf() not defined on FreeBSD. Updated lines 517, 533 and 561 to recognize isnan() and isinf() instead.
Merge pull request #2994 from AndrewEdwards/master

Update port.c
Merge pull request #2993 from 9rnsr/fix11785

Issue 11785 - Order of method/function declarations has an effect on compilation result
correctly identify FreeBSD model
Revert "correctly identify FreeBSD model"

This reverts commit a0eb89a9e49bdb87cf623ddcc86937d497bfbab8.