summaryrefslogtreecommitdiff
path: root/libgfortran/c99_protos.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2004-12-08 00:43:40 +0100
committerEric Botcazou <ebotcazou@gcc.gnu.org>2004-12-07 23:43:40 +0000
commit6e4d9244f73b5859d90a34a8562300974c6baf29 (patch)
tree7397b8cae4794ec49536905235d48066a52a6dc3 /libgfortran/c99_protos.h
parentc08f800e9a244f29fd5e4124ed1ed6e3205aca25 (diff)
configure.ac: Check for ieeefp.h.
* configure.ac: Check for ieeefp.h. Check for fabsf in libm. * configure: Regenerate. * config.h.in: Likewise. * c99_protos.h: New file. * libgfortran.h: Include c99_protos.h and conditionally ieeefp.h. * intrinsics/c99_functions.c (fabsf): New function. From-SVN: r91832
Diffstat (limited to 'libgfortran/c99_protos.h')
-rw-r--r--libgfortran/c99_protos.h126
1 files changed, 126 insertions, 0 deletions
diff --git a/libgfortran/c99_protos.h b/libgfortran/c99_protos.h
new file mode 100644
index 00000000000..18fc36bcb98
--- /dev/null
+++ b/libgfortran/c99_protos.h
@@ -0,0 +1,126 @@
+/* Declarations of various C99 functions
+ Copyright (C) 2004 Free Software Foundation, Inc.
+
+This file is part of the GNU Fortran 95 runtime library (libgfortran).
+
+Libgfortran is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+Libgfortran is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with libgfortran; see the file COPYING.LIB. If not,
+write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA. */
+
+
+#ifndef C99_PROTOS_H
+#define C99_PROTOS_H
+
+#ifndef HAVE_ACOSF
+extern float acosf(float);
+#endif
+
+#ifndef HAVE_ASINF
+extern float asinf(float);
+#endif
+
+#ifndef HAVE_ATAN2F
+extern float atan2f(float, float);
+#endif
+
+#ifndef HAVE_ATANF
+extern float atanf(float);
+#endif
+
+#ifndef HAVE_CEILF
+extern float ceilf(float);
+#endif
+
+#ifndef HAVE_COPYSIGNF
+extern float copysignf(float, float);
+#endif
+
+#ifndef HAVE_COSF
+extern float cosf(float);
+#endif
+
+#ifndef HAVE_COSHF
+extern float coshf(float);
+#endif
+
+#ifndef HAVE_EXPF
+extern float expf(float);
+#endif
+
+#ifndef HAVE_FABSF
+extern float fabsf(float);
+#endif
+
+#ifndef HAVE_FLOORF
+extern float floorf(float);
+#endif
+
+#ifndef HAVE_FREXPF
+extern float frexpf(float, int *);
+#endif
+
+#ifndef HAVE_HYPOTF
+extern float hypotf(float, float);
+#endif
+
+#ifndef HAVE_LOGF
+extern float logf(float);
+#endif
+
+#ifndef HAVE_LOG10F
+extern float log10f(float);
+#endif
+
+#ifndef HAVE_SCALBNF
+extern float scalbnf(float, int);
+#endif
+
+#ifndef HAVE_SINF
+extern float sinf(float);
+#endif
+
+#ifndef HAVE_SINHF
+extern float sinhf(float);
+#endif
+
+#ifndef HAVE_SQRTF
+extern float sqrtf(float);
+#endif
+
+#ifndef HAVE_TANF
+extern float tanf(float);
+#endif
+
+#ifndef HAVE_TANHF
+extern float tanhf(float);
+#endif
+
+#ifndef HAVE_NEXTAFTERF
+extern float nextafterf(float, float);
+#endif
+
+#ifndef HAVE_POWF
+extern float powf(float, float);
+#endif
+
+#ifndef HAVE_ROUND
+extern double round(double);
+#endif
+
+#ifndef HAVE_ROUNDF
+extern float roundf(float);
+#endif
+
+#endif /* C99_PROTOS_H */
+