summaryrefslogtreecommitdiff
path: root/libpsx/include/stdint.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpsx/include/stdint.h')
-rw-r--r--libpsx/include/stdint.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libpsx/include/stdint.h b/libpsx/include/stdint.h
new file mode 100644
index 0000000..e6bb9d2
--- /dev/null
+++ b/libpsx/include/stdint.h
@@ -0,0 +1,14 @@
+/* stdint.h */
+
+#ifndef _STDINT_H
+#define _STDINT_H
+
+#include <inttypes.h>
+
+// Added ifndef or otherwise GCC 4.8 would complain
+
+#ifndef __PTRDIFF_TYPE__
+typedef unsigned int ptrdiff_t;
+#endif
+
+#endif