Changeset de53138 in mainline for uspace/lib/cpp/include/cstddef


Ignore:
Timestamp:
2018-07-05T21:41:21Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c71c171
Parents:
6d8a63a
git-author:
Dzejrou <dzejrou@…> (2018-04-20 00:11:54)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:21)
Message:

cpp: revamped c header wrappers, now only include standard symbols, others are in std::hel, fixed some bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/cstddef

    r6d8a63a rde53138  
    11/*
    2  * Copyright (c) 2017 Jaroslav Jindrak
     2 * Copyright (c) 2018 Jaroslav Jindrak
    33 * All rights reserved.
    44 *
     
    3232#include "internal/common.hpp"
    3333
     34namespace std::hel
     35{
     36    extern "C" {
     37        #include <stddef.h>
     38    }
     39}
     40
     41
    3442namespace std
    3543{
     44    using nullptr_t = decltype(nullptr);
    3645
    37 extern "C" {
    38 #include <stddef.h>
     46    using std::hel::size_t;
     47    using std::hel::ptrdiff_t;
     48    /* using std::hel::max_align_t; */
    3949}
    4050
    41 using nullptr_t = decltype(nullptr);
    42 
    43 }
     51using std::nullptr_t;
     52using std::hel::size_t;
     53using std::hel::ptrdiff_t;
     54/* using std::hel::max_align_t; */
    4455
    4556#endif
Note: See TracChangeset for help on using the changeset viewer.