Changeset 99170e0c in mainline for abi/include/_bits/wchar_limits.h


Ignore:
Timestamp:
2018-09-29T14:56:56Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1938b381
Parents:
10d65d70
Message:

Actually use compiler's <stddef.h>

File:
1 moved

Legend:

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

    r10d65d70 r99170e0c  
    4141#define _BITS_WCHAR_MIN_H_
    4242
    43 #include <_bits/macros.h>
     43/* wchar_t should always be signed int in HelenOS. */
    4444
    45 #define WCHAR_MIN  __WCHAR_MIN__
     45#include <_bits/wchar_t.h>
     46
     47#ifndef __cplusplus
     48_Static_assert(((wchar_t)-1) < 0, "wchar_t is not int");
     49_Static_assert(sizeof(wchar_t) == 4, "wchar_t is not int");
     50#endif
     51
     52#ifndef WCHAR_MAX
     53#define WCHAR_MAX  0x7fffffff
     54#endif
     55#ifndef WCHAR_MIN
     56#define WCHAR_MIN  (-WCHAR_MIN - 1)
     57#endif
    4658
    4759#endif
Note: See TracChangeset for help on using the changeset viewer.