summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys/_stdint.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-04-01 20:34:08 +0200
committerCorinna Vinschen <corinna@vinschen.de>2015-04-23 21:57:10 +0200
commit897d3a3cc4b84f1ce4f598f048c4588b5acb81f9 (patch)
tree419496a6d34e142588a55a7d557140512fa535cd /newlib/libc/include/sys/_stdint.h
parent9e8932d6dac0d0acdedaf363adbf2265111ed27c (diff)
downloadcygnal-897d3a3cc4b84f1ce4f598f048c4588b5acb81f9.tar.gz
cygnal-897d3a3cc4b84f1ce4f598f048c4588b5acb81f9.tar.bz2
cygnal-897d3a3cc4b84f1ce4f598f048c4588b5acb81f9.zip
Add <sys/_stdint.h> for FreeBSD compatibility
* libc/include/sys/_stdint.h: New file. * libc/include/stdint.h (int8_t): Move to <sys/_stdint.h>. (uint8_t): Likewise. (int16_t): Likewise. (uint16_t): Likewise. (int32_t): Likewise. (uint32_t): Likewise. (int64_t): Likewise. (uint64_t): Likewise. (intptr_t): Likewise. (uintptr_t): Likewise. * libc/include/sys/types.h: Include <sys/_stdint.h>. * libc/sys/rtems/machine/_types.h: Remove <stdint.h> include. * libc/sys/time.h>: Replace __uint32_t with uint32_t and __uint64_t with uint64_t. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/include/sys/_stdint.h')
-rw-r--r--newlib/libc/include/sys/_stdint.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/_stdint.h b/newlib/libc/include/sys/_stdint.h
new file mode 100644
index 000000000..add1860c5
--- /dev/null
+++ b/newlib/libc/include/sys/_stdint.h
@@ -0,0 +1,49 @@
+/*
+ * Copyright (c) 2004, 2005 by
+ * Ralf Corsepius, Ulm/Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#ifndef _SYS__STDINT_H
+#define _SYS__STDINT_H
+
+#include <machine/_default_types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef ___int8_t_defined
+typedef __int8_t int8_t ;
+typedef __uint8_t uint8_t ;
+#define __int8_t_defined 1
+#endif
+
+#ifdef ___int16_t_defined
+typedef __int16_t int16_t ;
+typedef __uint16_t uint16_t ;
+#define __int16_t_defined 1
+#endif
+
+#ifdef ___int32_t_defined
+typedef __int32_t int32_t ;
+typedef __uint32_t uint32_t ;
+#define __int32_t_defined 1
+#endif
+
+#ifdef ___int64_t_defined
+typedef __int64_t int64_t ;
+typedef __uint64_t uint64_t ;
+#define __int64_t_defined 1
+#endif
+
+typedef __intptr_t intptr_t;
+typedef __uintptr_t uintptr_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _SYS__STDINT_H */