public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Make _CLOCK_T_ system configurable
@ 2017-08-25 12:26 Sebastian Huber
0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2017-08-25 12:26 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=7b2c3621901dbb0a3535f8056a2eadb9095a5ad2
commit 7b2c3621901dbb0a3535f8056a2eadb9095a5ad2
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date: Thu Aug 24 15:26:03 2017 +0200
Make _CLOCK_T_ system configurable
Let systems optionally provide the _CLOCK_T_ type via
<machine/_types.h>.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diff:
---
newlib/libc/include/sys/_types.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h
index 98b93ce..d27979c 100644
--- a/newlib/libc/include/sys/_types.h
+++ b/newlib/libc/include/sys/_types.h
@@ -180,7 +180,10 @@ typedef _LOCK_RECURSIVE_T _flock_t;
typedef void *_iconv_t;
#endif
+#ifndef __machine_clock_t_defined
#define _CLOCK_T_ unsigned long /* clock() */
+#endif
+
typedef _CLOCK_T_ __clock_t;
#define _TIME_T_ long /* time() */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-25 12:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-25 12:26 [newlib-cygwin] Make _CLOCK_T_ system configurable Sebastian Huber
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).