summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-04-16 13:23:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-04-16 13:23:40 +0000
commit485e80fa0316b6f9dec52d2653ee9a92776cacc5 (patch)
tree76d8b96b648ab5c635feb73527f19934288d180c
parentb5c5bbcf07e07584ba243e4b3edf0585a82a4280 (diff)
downloadrtems-485e80fa0316b6f9dec52d2653ee9a92776cacc5.tar.bz2
2002-04-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am: Add stdint.h and inttypes.h. (reported by Mike Siers <mikes@poliac.com>) * include/stdint.h: New file. * include/inttypes.h: New file.
-rw-r--r--c/src/exec/libcsupport/include/inttypes.h22
-rw-r--r--c/src/exec/libcsupport/include/stdint.h30
-rw-r--r--c/src/lib/ChangeLog7
-rw-r--r--c/src/lib/include/Makefile.am3
-rw-r--r--c/src/lib/include/inttypes.h22
-rw-r--r--c/src/lib/include/stdint.h30
-rw-r--r--cpukit/libcsupport/include/inttypes.h22
-rw-r--r--cpukit/libcsupport/include/stdint.h30
8 files changed, 166 insertions, 0 deletions
diff --git a/c/src/exec/libcsupport/include/inttypes.h b/c/src/exec/libcsupport/include/inttypes.h
new file mode 100644
index 0000000000..dad6c67c7d
--- /dev/null
+++ b/c/src/exec/libcsupport/include/inttypes.h
@@ -0,0 +1,22 @@
+/*
+ * inttypes.h
+ *
+ * ISO C99 Format conversion of integer types.
+ *
+ * $Id$
+ */
+
+#ifndef __INTTYPES_H
+#define __INTTYPES_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdint.h>
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/c/src/exec/libcsupport/include/stdint.h b/c/src/exec/libcsupport/include/stdint.h
new file mode 100644
index 0000000000..dd2e490ef9
--- /dev/null
+++ b/c/src/exec/libcsupport/include/stdint.h
@@ -0,0 +1,30 @@
+/*
+ * stdint.h
+ *
+ * ISO C99 integer types
+ *
+ * $Id$
+ */
+
+#ifndef __STDINT_H
+#define __STDINT_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef signed char int8_t;
+typedef short int int16_t;
+typedef int int32_t;
+typedef long int int64_t;
+
+typedef unsigned char uint8_t;
+typedef unsigned short int uint16_t;
+typedef unsigned int uint32_t;
+typedef unsigned long int uint64_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/c/src/lib/ChangeLog b/c/src/lib/ChangeLog
index dc34718279..abf8d52320 100644
--- a/c/src/lib/ChangeLog
+++ b/c/src/lib/ChangeLog
@@ -1,3 +1,10 @@
+2002-04-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * include/Makefile.am: Add stdint.h and inttypes.h.
+ (reported by Mike Siers <mikes@poliac.com>)
+ * include/stdint.h: New file.
+ * include/inttypes.h: New file.
+
2002-04-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libc/stat.c: include <string.h>.
diff --git a/c/src/lib/include/Makefile.am b/c/src/lib/include/Makefile.am
index 31c8052b99..23cae460d0 100644
--- a/c/src/lib/include/Makefile.am
+++ b/c/src/lib/include/Makefile.am
@@ -6,6 +6,9 @@
include_HEADERS = chain.h console.h clockdrv.h iosupp.h ringbuf.h rtc.h \
spurious.h timerdrv.h vmeintr.h
+LIBC_HFILES = stdint.h inttypes.h
+include_HEADERS += $(LIBC_HFILES)
+
PREINSTALL_FILES = $(PROJECT_INCLUDE) \
$(include_HEADERS:%=$(PROJECT_INCLUDE)/%)
diff --git a/c/src/lib/include/inttypes.h b/c/src/lib/include/inttypes.h
new file mode 100644
index 0000000000..dad6c67c7d
--- /dev/null
+++ b/c/src/lib/include/inttypes.h
@@ -0,0 +1,22 @@
+/*
+ * inttypes.h
+ *
+ * ISO C99 Format conversion of integer types.
+ *
+ * $Id$
+ */
+
+#ifndef __INTTYPES_H
+#define __INTTYPES_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdint.h>
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/c/src/lib/include/stdint.h b/c/src/lib/include/stdint.h
new file mode 100644
index 0000000000..dd2e490ef9
--- /dev/null
+++ b/c/src/lib/include/stdint.h
@@ -0,0 +1,30 @@
+/*
+ * stdint.h
+ *
+ * ISO C99 integer types
+ *
+ * $Id$
+ */
+
+#ifndef __STDINT_H
+#define __STDINT_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef signed char int8_t;
+typedef short int int16_t;
+typedef int int32_t;
+typedef long int int64_t;
+
+typedef unsigned char uint8_t;
+typedef unsigned short int uint16_t;
+typedef unsigned int uint32_t;
+typedef unsigned long int uint64_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/cpukit/libcsupport/include/inttypes.h b/cpukit/libcsupport/include/inttypes.h
new file mode 100644
index 0000000000..dad6c67c7d
--- /dev/null
+++ b/cpukit/libcsupport/include/inttypes.h
@@ -0,0 +1,22 @@
+/*
+ * inttypes.h
+ *
+ * ISO C99 Format conversion of integer types.
+ *
+ * $Id$
+ */
+
+#ifndef __INTTYPES_H
+#define __INTTYPES_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdint.h>
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/cpukit/libcsupport/include/stdint.h b/cpukit/libcsupport/include/stdint.h
new file mode 100644
index 0000000000..dd2e490ef9
--- /dev/null
+++ b/cpukit/libcsupport/include/stdint.h
@@ -0,0 +1,30 @@
+/*
+ * stdint.h
+ *
+ * ISO C99 integer types
+ *
+ * $Id$
+ */
+
+#ifndef __STDINT_H
+#define __STDINT_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef signed char int8_t;
+typedef short int int16_t;
+typedef int int32_t;
+typedef long int int64_t;
+
+typedef unsigned char uint8_t;
+typedef unsigned short int uint16_t;
+typedef unsigned int uint32_t;
+typedef unsigned long int uint64_t;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif