Ticket #3180: MTA_integer.patch

File MTA_integer.patch, 1.5 KB (added by ngedmond, 13 years ago)
  • cstdint.hpp

     
    226226     typedef short           int_fast16_t;
    227227     typedef unsigned short  uint_least16_t;
    228228     typedef unsigned short  uint_fast16_t;
     229# elif (USHRT_MAX == 0xffffffff) && defined(__MTA__)
     230     // On MTA / XMT short is 32 bits unless the -short16 compiler flag is specified
     231     // MTA / XMT does support the following non-standard integer types
     232     typedef __short16           int16_t;
     233     typedef __short16           int_least16_t;
     234     typedef __short16           int_fast16_t;
     235     typedef unsigned __short16  uint16_t;
     236     typedef unsigned __short16  uint_least16_t;
     237     typedef unsigned __short16  uint_fast16_t;
    229238# else
    230239#    error defaults not correct; you must hand modify boost/cstdint.hpp
    231240# endif
     
    246255     typedef unsigned int    uint32_t;
    247256     typedef unsigned int    uint_least32_t;
    248257     typedef unsigned int    uint_fast32_t;
     258# elif (UINT_MAX == 0xffffffffffffffff) && defined(__MTA__)
     259     // Integers are 64 bits on the MTA / XMT
     260     typedef __int32           int32_t;
     261     typedef __int32           int_least32_t;
     262     typedef __int32           int_fast32_t;
     263     typedef unsigned __int32  uint32_t;
     264     typedef unsigned __int32  uint_least32_t;
     265     typedef unsigned __int32  uint_fast32_t;
    249266# else
    250267#    error defaults not correct; you must hand modify boost/cstdint.hpp
    251268# endif