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]

[PATCH] epiphany/machine/stdlib.h: Disable epiphany unique random wrappers for RTEMS


---
 newlib/libc/machine/epiphany/machine/stdlib.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/newlib/libc/machine/epiphany/machine/stdlib.h b/newlib/libc/machine/epiphany/machine/stdlib.h
index 95b4063..7ede4dd 100644
--- a/newlib/libc/machine/epiphany/machine/stdlib.h
+++ b/newlib/libc/machine/epiphany/machine/stdlib.h
@@ -1,3 +1,4 @@
+#ifndef __rtems__
 static __inline__ long int
 random (void)
 {
@@ -13,3 +14,4 @@ srandom (unsigned int seed)
 
   srand (seed);
 }
+#endif
-- 
1.8.3.1


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