summaryrefslogtreecommitdiff
path: root/purgatory/arch/s390/include/stdint.h
diff options
context:
space:
mode:
Diffstat (limited to 'purgatory/arch/s390/include/stdint.h')
-rw-r--r--purgatory/arch/s390/include/stdint.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/purgatory/arch/s390/include/stdint.h b/purgatory/arch/s390/include/stdint.h
new file mode 100644
index 0000000..a713cf5
--- /dev/null
+++ b/purgatory/arch/s390/include/stdint.h
@@ -0,0 +1,24 @@
+#ifndef _STDINT_H
+#define _STDINT_H
+
+typedef unsigned long size_t;
+
+typedef unsigned char uint8_t;
+typedef unsigned short uint16_t;
+typedef unsigned int uint32_t;
+#ifdef __s390x__
+typedef unsigned long uint64_t;
+#else
+typedef unsigned long long uint64_t;
+#endif
+
+typedef signed char int8_t;
+typedef short int16_t;
+typedef int int32_t;
+#ifdef __s390x__
+typedef long int64_t;
+#else
+typedef long long int64_t;
+#endif
+
+#endif