[haiku-development] ptrdiff_t and size_t in Haiku/GCC

  • From: Joseph Prostko <joe.prostko+haiku@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 25 Jun 2009 13:23:01 -0400

Hi,

While looking through the target headers for GCC, I noticed that the
language data type macros for ptrdiff_t and size_t are defined as
follows for Haiku:

#define SIZE_TYPE "long unsigned int"

#define PTRDIFF_TYPE "long int"

Should these be "unsigned int" and "int" respectively?  This mostly
came to mind due to the new wchar changes, which had me looking
through these files a bit. The defines of "unsigned int" and "int"
seem like the most common setting for other operating systems, but I
figured I'd ask around in case I'm overlooking something obvious.

- joe

Other related posts: