diff options
Diffstat (limited to 'libgfortran/m4/nearest.m4')
-rw-r--r-- | libgfortran/m4/nearest.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libgfortran/m4/nearest.m4 b/libgfortran/m4/nearest.m4 index ce83dc500ff..598ba4e3c94 100644 --- a/libgfortran/m4/nearest.m4 +++ b/libgfortran/m4/nearest.m4 @@ -27,12 +27,16 @@ You should have received a copy of the GNU General Public License along with libgfortran; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#include "config.h" #include <math.h> #include <float.h> #include "libgfortran.h"' include(`mtype.m4')dnl +`#if defined (HAVE_'real_type`) && defined (HAVE_COPYSIGN'Q`) && defined (HAVE_NEXTAFTER'Q`)' + extern real_type nearest_r`'kind (real_type s, real_type dir); export_proto(nearest_r`'kind); @@ -49,3 +53,5 @@ nearest_r`'kind (real_type s, real_type dir) else return nextafter`'q (s, dir); } + +#endif |