Changeset 52acfab in mainline for abi/include/limits.h


Ignore:
Timestamp:
2019-05-28T19:24:14Z (6 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
77de449e
Parents:
af5037d (diff), bebd154 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-05-28 19:24:14)
git-committer:
GitHub <noreply@…> (2019-05-28 19:24:14)
Message:

Merge pull request #161 from le-jzr/cxxcompat2

C++ compatibility improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abi/include/limits.h

    raf5037d r52acfab  
    8484#define MB_LEN_MAX 4
    8585
     86#ifdef _HELENOS_SOURCE
    8687#define UCHAR_MIN   0
    8788#define USHRT_MIN   0
     
    8990#define ULONG_MIN   (0ul)
    9091#define ULLONG_MIN  (0ull)
     92#define SSIZE_MIN   INTPTR_MIN
     93#define UINT8_MIN   0
     94#define UINT16_MIN  0
     95#define UINT32_MIN  0
     96#define UINT64_MIN  0
     97#endif
     98
     99#if defined(_HELENOS_SOURCE) || defined(_POSIX_SOURCE) || \
     100    defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \
     101    defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
     102
     103#define SSIZE_MAX  INTPTR_MAX
     104#define NAME_MAX   255
     105
     106#endif
    91107
    92108/* GCC's <limits.h> doesn't define these for C++11, even though it should. */
Note: See TracChangeset for help on using the changeset viewer.