public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] fixes to make compilation succeeds
@ 2020-12-18  9:07 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2020-12-18  9:07 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=4bb6581aa824dea975c1c54078411c50284cc03e

commit 4bb6581aa824dea975c1c54078411c50284cc03e
Author: Paul Zimmermann <Paul.Zimmermann@inria.fr>
Date:   Fri Dec 18 09:52:40 2020 +0100

    fixes to make compilation succeeds

Diff:
---
 newlib/libm/math/w_tgamma.c  | 1 +
 newlib/libm/math/wf_tgamma.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/newlib/libm/math/w_tgamma.c b/newlib/libm/math/w_tgamma.c
index 0f90dd4c6..52d5d71d3 100644
--- a/newlib/libm/math/w_tgamma.c
+++ b/newlib/libm/math/w_tgamma.c
@@ -16,6 +16,7 @@
  */
 
 #include "fdlibm.h"
+#include <errno.h>
 
 #ifndef _DOUBLE_IS_32BITS
 
diff --git a/newlib/libm/math/wf_tgamma.c b/newlib/libm/math/wf_tgamma.c
index 80aacf757..504cb4c29 100644
--- a/newlib/libm/math/wf_tgamma.c
+++ b/newlib/libm/math/wf_tgamma.c
@@ -15,6 +15,7 @@
 
 #include "math.h"
 #include "fdlibm.h"
+#include <errno.h>
 
 #ifdef __STDC__
 	float tgammaf(float x)
@@ -34,7 +35,6 @@
 	    errno = EDOM;
 	  else if (finite(x))
 	    errno = ERANGE;
-	}
 	return y;
 #endif
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-18  9:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-18  9:07 [newlib-cygwin] fixes to make compilation succeeds Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).