VirtualBox

Changeset 16345 in vbox for trunk/include/iprt/stdint.h


Ignore:
Timestamp:
Jan 28, 2009 9:54:06 PM (16 years ago)
Author:
vboxsync
Message:

iprt/stdint.h: [U]INT32_C() is wrong in the 10a222 kernel header (stdint.h), kludge around it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/stdint.h

    r16019 r16345  
    4646#include <iprt/cdefs.h>
    4747
    48 #if !(defined(RT_OS_LINUX) && defined(__KERNEL__)) && !defined(_MSC_VER) && !defined(__IBMC__) && !defined(__IBMCPP__) \
    49   && !defined(IPRT_NO_CRT) && !defined(IPRT_DONT_USE_SYSTEM_STDINT_H) && !defined(DOXYGEN_RUNNING)
     48#if !(defined(RT_OS_LINUX) && defined(__KERNEL__))  \
     49  && !defined(_MSC_VER) \
     50  && !defined(__IBMC__) \
     51  && !defined(__IBMCPP__) \
     52  && !defined(IPRT_NO_CRT) \
     53  && !defined(IPRT_DONT_USE_SYSTEM_STDINT_H) \
     54  && !defined(DOXYGEN_RUNNING)
    5055# include <stdint.h>
     56
     57# if defined(RT_OS_DARWIN) && defined(KERNEL) && defined(RT_ARCH_AMD64)
     58/* Kludge to fix the incorrect 32-bit constant macros in
     59   Kernel.framework/Headers/stdin.h. uint32_t and int32_t are
     60   int not long as these macros use, which is significant when
     61   targeting AMD64. (10a222) */
     62#  undef  INT32_C
     63#  define INT32_C(c)        (c)
     64#  undef  UINT32_C
     65#  define UINT32_C(c)       (c ## U)
     66# endif /* 64-bit darwin kludge. */
    5167
    5268#else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette