[PATCH] Add <sys/_stdint.h> for FreeBSD compatibility

Joel Sherrill joel.sherrill@oarcorp.com
Mon Mar 30 15:39:00 GMT 2015

On 3/30/2015 5:41 AM, Corinna Vinschen wrote:
> On Mar 24 11:00, Corinna Vinschen wrote:
>> On Mar 23 20:36, Sebastian Huber wrote:
>>> 	* libc/include/sys/_stdint.h: New file.
>>> 	* libc/include/stdint.h (int8_t): Move to <sys/_stdint.h>.
>>> 	(uint8_t): Likewise.
>>> 	(int16_t): Likewise.
>>> 	(uint16_t): Likewise.
>>> 	(int32_t): Likewise.
>>> 	(uint32_t): Likewise.
>>> 	(int64_t): Likewise.
>>> 	(uint64_t): Likewise.
>>> 	* libc/include/sys/types.h: Include <sys/_stdint.h>.
>>> 	* libc/sys/rtems/machine/_types.h: Remove <stdint.h> include.
>>> 	* libc/sys/time.h>: Replace __uint32_t with uint32_t and
>>> 	__uint64_t with uint64_t.
>> I'd like to take the opportunity to drop the Cygwin-only stdint.h
>> and inttypes.h files and use the newlib ones instead.
>> Does anybody have some testcode which allows to see if the old and
>> the new stdint.h/inttypes.h render the exact same result?
> Obviously not.  I try to come up with a test this week so I can check
> that removing the Cygwin stdint.h and inttypes.h doesn't change the
> result.  Sorry, but I really don't want to apply this patch without
> thble accompanying Cygwin change.  Hope that's ok.
Personally, I feel better when Cygwin and RTEMS both use vanilla newlib
.h files. More eyes and more users is always better for these types of
subtle issues.
> Thanks,
> Corinna

Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

More information about the Newlib mailing list