summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2006-07-12 06:43:31 +0000
committerbrad <brad@openbsd.org>2006-07-12 06:43:31 +0000
commit4106c2fd6fd1aba9f787681bd975d3b2555c4768 (patch)
treee5f433ff6fc2e0a44594c79d8278f2e2dcaf9dba
parentmake dmesg lines openbsd-style, ok dlg@ (diff)
downloadwireguard-openbsd-4106c2fd6fd1aba9f787681bd975d3b2555c4768.tar.xz
wireguard-openbsd-4106c2fd6fd1aba9f787681bd975d3b2555c4768.zip
add missing prototypes for trunc/truncf.
-rw-r--r--include/math.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/math.h b/include/math.h
index 1f317da5d02..e7073e3d445 100644
--- a/include/math.h
+++ b/include/math.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: math.h,v 1.12 2006/05/05 20:10:25 otto Exp $ */
+/* $OpenBSD: math.h,v 1.13 2006/07/12 06:43:31 brad Exp $ */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -141,6 +141,8 @@ extern double fabs(double);
extern double floor(double);
extern double fmod(double, double);
+extern double trunc(double);
+
#if __BSD_VISIBLE || __XPG_VISIBLE
extern double erf(double);
extern double erfc(double);
@@ -234,6 +236,8 @@ extern float fabsf(float);
extern float floorf(float);
extern float fmodf(float, float);
+extern float truncf(float);
+
extern float erff(float);
extern float erfcf(float);
extern float gammaf(float);