Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset e9690b6 in mainline


Ignore:
Timestamp:
2017-10-25T00:25:10Z (3 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
master
Children:
7c50de5a
Parents:
1c95fd0
Message:

Allow disabling intmax_t in downstream code (used in coastline).

Location:
abi/include/_bits
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • abi/include/_bits/inttypes.h

    r1c95fd0 re9690b6  
    4444#include <_bits/wchar_t.h>
    4545
    46 typedef struct {
    47         intmax_t quot;
    48         intmax_t rem;
    49 } imaxdiv_t;
    50 
    5146#define PRId8       __PRId8__
    5247#define PRIdLEAST8  __PRId8__
     
    237232#define SCNxPTR  __SCNxPTR__
    238233
     234#ifndef __HELENOS_DISABLE_INTMAX__
     235
    239236#define PRIdMAX  __PRIdMAX__
    240237#define PRIiMAX  __PRIiMAX__
     
    249246#define SCNxMAX  __SCNxMAX__
    250247
     248typedef struct {
     249        intmax_t quot;
     250        intmax_t rem;
     251} imaxdiv_t;
     252
     253#endif  /* __HELENOS_DISABLE_INTMAX__ */
     254
    251255#endif
    252256
  • abi/include/_bits/macros.h

    r1c95fd0 re9690b6  
    578578#endif
    579579
     580#ifndef __HELENOS_DISABLE_INTMAX__
     581
    580582#if !defined(__INTMAX_TYPE__) || !defined(__INTMAX_MAX__)
    581583#error HelenOS expects __INTMAX_TYPE__ and __INTMAX_MAX__ \
     
    640642#define __SCNxMAX__  "jx"
    641643
     644#endif  /* __HELENOS_DISABLE_INTMAX__ */
     645
    642646#ifndef __SIZEOF_FLOAT__
    643647#error HelenOS expects __SIZEOF_FLOAT__ to be defined.
  • abi/include/_bits/stdint.h

    r1c95fd0 re9690b6  
    155155#define UINTPTR_MAX  __UINTPTR_MAX__
    156156
     157#ifndef __HELENOS_DISABLE_INTMAX__
     158
    157159typedef __INTMAX_TYPE__  intmax_t;
    158160typedef __UINTMAX_TYPE__ uintmax_t;
     
    165167#define INTMAX_C(x)   __INTMAX_C(x)
    166168#define UINTMAX_C(x)  __UINTMAX_C(x)
     169
     170#endif  /* __HELENOS_DISABLE_INTMAX__ */
    167171
    168172#define PTRDIFF_MIN  __PTRDIFF_MIN__
Note: See TracChangeset for help on using the changeset viewer.