commit | 7e911e43f51feb1a0255efaea3aa3bcb79adbede | [log] [tgz] |
---|---|---|
author | Thorsten Glaser <tg@mirbsd.org> | Tue May 15 16:30:19 2012 +0000 |
committer | H. Peter Anvin <hpa@linux.intel.com> | Tue May 15 11:33:07 2012 -0700 |
tree | 1a9ec4e9e7c71ed3f4c5ba1bdefb74d25ac646dd | |
parent | 87259a8dd521fafff32734c5d844b7dd21859eb0 [diff] |
[klibc] Use GCC definitions for size_t, ssize_t, ptrdiff_t Fall back to (unsigned) long if klibc userspace applications are compiled with something that is not GCC or close enough to also define its __SIZE_TYPE__ and __PTRDIFF_TYPE__ macros. Change the definition of ssize_t to be decoupled from ptrdiff_t and be derived from __SIZE_TYPE__ instead, dropping the unsigned. Signed-off-by: Thorsten Glaser <tg@mirbsd.org> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>