This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add simple versions of random() and srandom()


On 2016-03-22 17:51, Joel Sherrill wrote:
Prototypes also added for initstate() and setstate() but they
were not implemented.

This should allow Cygwin to remove its own declarations of these functions.

+#if __SVID_VISIBLE || __XSI_VISIBLE >= 4 || __BSD_VISIBLE

#if __MISC_VISIBLE || __XSI_VISIBLE >= 500

diff --git a/newlib/libc/stdlib/Makefile.am b/newlib/libc/stdlib/Makefile.am
index 9deaf9a..a59df68 100644
--- a/newlib/libc/stdlib/Makefile.am
+++ b/newlib/libc/stdlib/Makefile.am
@@ -50,6 +50,7 @@ GENERAL_SOURCES = \
  	quick_exit.c	\
  	rand.c		\
  	rand_r.c	\
+	random.c	\
  	realloc.c	\
  	reallocf.c	\
  	sb_charsets.c	\

This also needs an addition to CHEWOUT_FILES and stdlib.tex.

--
Yaakov


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]