summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/vax/gen/fpclassify.c
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2011-07-02 19:27:34 +0000
committermartynas <martynas@openbsd.org>2011-07-02 19:27:34 +0000
commit10786bc34e6b35a567a2681a0052b967e3dbc9c6 (patch)
tree13f1d964aca9b7dc5d0dff470c7bb5f94afe2bdf /lib/libc/arch/vax/gen/fpclassify.c
parentAdd cephes. (diff)
downloadwireguard-openbsd-10786bc34e6b35a567a2681a0052b967e3dbc9c6.tar.xz
wireguard-openbsd-10786bc34e6b35a567a2681a0052b967e3dbc9c6.zip
Trick lint into recording the right prototypes in the llib-lc.ln
database on the vax, similarly like has been done in gen.
Diffstat (limited to 'lib/libc/arch/vax/gen/fpclassify.c')
-rw-r--r--lib/libc/arch/vax/gen/fpclassify.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/libc/arch/vax/gen/fpclassify.c b/lib/libc/arch/vax/gen/fpclassify.c
index eaba629f981..c1ee38f3b4f 100644
--- a/lib/libc/arch/vax/gen/fpclassify.c
+++ b/lib/libc/arch/vax/gen/fpclassify.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpclassify.c,v 1.3 2008/12/10 01:15:02 martynas Exp $ */
+/* $OpenBSD: fpclassify.c,v 1.4 2011/07/02 19:27:34 martynas Exp $ */
/*
* Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org>
*
@@ -15,6 +15,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+/* LINTLIBRARY */
+
#include <sys/cdefs.h>
#include <machine/vaxfp.h>
#include <math.h>
@@ -43,6 +45,9 @@ __fpclassifyf(float f)
return FP_NORMAL;
}
-#ifdef __weak_alias
+#ifdef lint
+/* PROTOLIB1 */
+int __fpclassifyl(long double);
+#else /* lint */
__weak_alias(__fpclassifyl, __fpclassify);
-#endif /* __weak_alias */
+#endif /* lint */