Thanks Paul and Russ!

> C99 stdint.h exists only for freestanding environments --
> i.e. environments without a C library, where the only available
> headers are float.h, iso646.h, limits.h, stdarg.h, stdbool.h,
> stddef.h, and stdint.h.  In effect, stdint.h is the freestanding part
> of inttypes.h.
 
 Sorry, I'm unfamiliar with the C99 Standard, but did it adopt sys/types.h,
 or define any relationship between sys/types.h and stdint.h/inttypes.h?

> should be changed to:
> 
>      #if HAVE_INTTYPES_H
>      # include <inttypes.h>
>      #else
>      # if HAVE_STDINT_H
>      #  include <stdint.h>
>      # endif
>      #endif

 I think I will adopt this approach.


Reply via email to