Menu

#605 ppc64 build failure: int32_t

Development_Branch
open
None
5
2022-04-11
2022-04-02
No

```

if PBYTE_ORDER==PLITTLE_ENDIAN

typedef PIntReversedOrder<int32_t> PInt32b;</int32_t>

elif PBYTE_ORDER==PBIG_ENDIAN

typedef PIntSameOrder<pint32> int32_t;</pint32>

endif

```

This section in ptlib/object.h (ptlib-2.18.8) causes a compile failure on ppc64.
int32_t is a type already reserved by stdint.h and must not be redefined by ptlib.

Discussion

  • Jan Engelhardt

    Jan Engelhardt - 2022-04-02
    #if PBYTE_ORDER==PLITTLE_ENDIAN
    typedef PIntReversedOrder<int32_t> PInt32b;
    #elif PBYTE_ORDER==PBIG_ENDIAN
    typedef PIntSameOrder<PInt32> int32_t;
    #endif
    
     
  • Jan Engelhardt

    Jan Engelhardt - 2022-04-11

    build-tested only

     
  • Jan Engelhardt

    Jan Engelhardt - 2022-04-11

    And this one for opal-3.18.8.

     

Log in to post a comment.

MongoDB Logo MongoDB