summaryrefslogtreecommitdiff
path: root/src/stddef/ptrdiff_t.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stddef/ptrdiff_t.h')
-rw-r--r--src/stddef/ptrdiff_t.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/stddef/ptrdiff_t.h b/src/stddef/ptrdiff_t.h
new file mode 100644
index 00000000..c591915a
--- /dev/null
+++ b/src/stddef/ptrdiff_t.h
@@ -0,0 +1,21 @@
+#ifdef __LLP64__
+# if ! defined __STDC_VERSION__ || __STDC_VERSION__ < 199909L
+typedef __int64 ptrdiff_t;
+# else
+typedef long long int ptrdiff_t;
+# endif
+#else
+typedef long int ptrdiff_t;
+#endif
+
+/** pointer arithmetic type **/
+
+/***
+is a signed integral type which results when subtracting one pointer
+from another.
+***/
+
+/*
+TYPEDEF(signed integer)
+STDC(1)
+*/