summaryrefslogtreecommitdiff
path: root/com32/include/bitsize
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-06-20 21:17:23 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-06-20 21:17:23 -0700
commit7bb33bdff6a80b526fad8e20fb7ee6f6643ed8da (patch)
tree9962965032e79f1da5f3b1531ea75c2f1e3d3f05 /com32/include/bitsize
parentd8818718986348fc14fd6478f9b164b634d568c9 (diff)
downloadsyslinux-7bb33bdff6a80b526fad8e20fb7ee6f6643ed8da.tar.gz
lib: Add missing bits to stddef.h, stdint.h; pointers are "long"
Add missing bits to stddef.h and stdint.h and correct the basic pointer type to "long". We really should use the gcc macros for this... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/include/bitsize')
-rw-r--r--com32/include/bitsize/stddef.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/com32/include/bitsize/stddef.h b/com32/include/bitsize/stddef.h
index caa5e726..bba48cf7 100644
--- a/com32/include/bitsize/stddef.h
+++ b/com32/include/bitsize/stddef.h
@@ -6,13 +6,9 @@
#define _BITSIZE_STDDEF_H
#define _SIZE_T
-#if defined(__s390__) || defined(__hppa__) || defined(__cris__)
typedef unsigned long size_t;
-#else
-typedef unsigned int size_t;
-#endif
#define _PTRDIFF_T
-typedef signed int ptrdiff_t;
+typedef signed long ptrdiff_t;
#endif /* _BITSIZE_STDDEF_H */