[haiku-bugs] Re: [Haiku] #10566: POSIX UINT16_C (and other) macros are incorrect in stdint.h

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Thu, 20 Feb 2014 03:31:59 -0000

#10566: POSIX UINT16_C (and other) macros are incorrect in stdint.h
----------------------------+----------------------------
   Reporter:  kallisti5     |      Owner:  kallisti5
       Type:  bug           |     Status:  new
   Priority:  normal        |  Milestone:  R1/alpha5
  Component:  Build System  |    Version:  R1/Development
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  x86-64
----------------------------+----------------------------

Comment (by kallisti5):

 Found the core issue.

 headers/config/types.h:

 If platform is 64-bit, uint64 is signed long
 If platform is not 64-bit, uint64 is signed long long

 Our stdint.h UINT64_C defines need adjusted to match this logic.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10566#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: