VirtualBox

Changeset 58624 in vbox


Ignore:
Timestamp:
Nov 10, 2015 1:13:46 AM (9 years ago)
Author:
vboxsync
Message:

iprt/stdint.h: Watcom & 16-bit adjustments.

File:
1 edited

Legend:

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

    r56291 r58624  
    112112#   endif
    113113#   if !defined(_INT32_T_DECLARED)  && !defined(_INT32_T)
     114#    if ARCH_BITS != 16
    114115typedef signed int          int32_t;
     116#    else
     117typedef signed long         int32_t;
     118#    endif
    115119#   endif
    116120#   if !defined(_UINT32_T_DECLARED) && !defined(_UINT32_T)
     121#    if ARCH_BITS != 16
    117122typedef unsigned int        uint32_t;
     123#    else
     124typedef unsigned long       uint32_t;
     125#    endif
    118126#   endif
    119127#   if defined(_MSC_VER)
     
    123131#    if !defined(_UINT64_T_DECLARED) && !defined(_UINT64_T)
    124132typedef unsigned _int64     uint64_t;
     133#    endif
     134#   elif defined(__WATCOMC__)
     135#    if !defined(_INT64_T_DECLARED)  && !defined(_INT64_T)
     136typedef signed __int64      int64_t;
     137#    endif
     138#    if !defined(_UINT64_T_DECLARED) && !defined(_UINT64_T)
     139typedef unsigned __int64    uint64_t;
    125140#    endif
    126141#   elif defined(IPRT_STDINT_USE_STRUCT_FOR_64_BIT_TYPES)
     
    195210# define INT8_C(Value)      (Value)
    196211# define INT16_C(Value)     (Value)
    197 # define INT32_C(Value)     (Value)
    198 # define INT64_C(Value)     (Value ## LL)
    199212# define UINT8_C(Value)     (Value)
    200213# define UINT16_C(Value)    (Value)
    201 # define UINT32_C(Value)    (Value ## U)
    202 # define UINT64_C(Value)    (Value ## ULL)
     214# if ARCH_BITS != 16
     215#  define INT32_C(Value)    (Value)
     216#  define UINT32_C(Value)   (Value ## U)
     217#  define INT64_C(Value)    (Value ## LL)
     218#  define UINT64_C(Value)   (Value ## ULL)
     219# else
     220#  define INT32_C(Value)    (Value ## L)
     221#  define UINT32_C(Value)   (Value ## UL)
     222#  define INT64_C(Value)    (Value ## LL)
     223#  define UINT64_C(Value)   (Value ## ULL)
     224# endif
    203225# define INTMAX_C(Value)    INT64_C(Value)
    204226# define UINTMAX_C(Value)   UINT64_C(Value)
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