Changeset 2b5628c in mainline


Ignore:
Timestamp:
2023-07-14T12:41:01Z (10 months ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
ticket/834-toolchain-update
Children:
851b842
Parents:
14cbf07
git-author:
Vojtech Horky <vojtech.horky@…> (2023-07-13 19:18:21)
git-committer:
Vojtech Horky <vojtech.horky@…> (2023-07-14 12:41:01)
Message:

char8_t behaves differently in C and C++

File:
1 edited

Legend:

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

    r14cbf07 r2b5628c  
    3838#include <stdint.h>
    3939
     40/*
     41 * char8_t became part of C++ with C++20.
     42 * It is part of C23 hence we define it for C compilations only.
     43 */
     44#ifndef __cplusplus
    4045typedef uint8_t char8_t;
     46#endif
     47
    4148typedef uint32_t char32_t;
    4249
Note: See TracChangeset for help on using the changeset viewer.