[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Date: Wed, 02 May 2007 20:14:05 -0700
- From: strauman at slac.stanford.edu (Till Straumann)
- Subject: stdint.h question
Who has not encountered those (and other annoying)
> warning: format '%x' expects type 'unsigned int', but argument 6 has
e.g., under linux (glibc) I don't get those but when porting code
to RTEMS I do. linux' stdint.h defines uint32_t as 'unsigned int'
(on a 32-bit machine) but RTEMS/newlib as 'unsigned long'.
(BTW: freebsd also uses int / unsigned int for int32_t / uint32_t
Does anybody have an idea how to properly deal with this?
I'm inclined to suggest a newlib fix...
Probably this has been answered already but
a quick search of the archives was not successful...