[b83ec692] | 1 | /*
|
---|
[de53138] | 2 | * Copyright (c) 2018 Jaroslav Jindrak
|
---|
[b83ec692] | 3 | * All rights reserved.
|
---|
| 4 | *
|
---|
| 5 | * Redistribution and use in source and binary forms, with or without
|
---|
| 6 | * modification, are permitted provided that the following conditions
|
---|
| 7 | * are met:
|
---|
| 8 | *
|
---|
| 9 | * - Redistributions of source code must retain the above copyright
|
---|
| 10 | * notice, this list of conditions and the following disclaimer.
|
---|
| 11 | * - Redistributions in binary form must reproduce the above copyright
|
---|
| 12 | * notice, this list of conditions and the following disclaimer in the
|
---|
| 13 | * documentation and/or other materials provided with the distribution.
|
---|
| 14 | * - The name of the author may not be used to endorse or promote products
|
---|
| 15 | * derived from this software without specific prior written permission.
|
---|
| 16 | *
|
---|
| 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
---|
| 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
---|
| 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
---|
| 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
---|
| 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
---|
| 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
---|
| 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
---|
| 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
---|
| 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
---|
| 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
---|
| 27 | */
|
---|
| 28 |
|
---|
| 29 | #ifndef LIBCPP_CSTDINT
|
---|
| 30 | #define LIBCPP_CSTDINT
|
---|
| 31 |
|
---|
[a1aecb1] | 32 |
|
---|
[de53138] | 33 | namespace std::hel
|
---|
| 34 | {
|
---|
| 35 | extern "C" {
|
---|
| 36 | #include <stdint.h>
|
---|
| 37 | }
|
---|
| 38 | }
|
---|
| 39 |
|
---|
[b83ec692] | 40 | namespace std
|
---|
| 41 | {
|
---|
[de53138] | 42 | using int8_t = std::hel::int8_t;
|
---|
| 43 | using int16_t = std::hel::int16_t;
|
---|
| 44 | using int32_t = std::hel::int32_t;
|
---|
| 45 | using int64_t = std::hel::int64_t;
|
---|
[b83ec692] | 46 |
|
---|
[de53138] | 47 | using intmax_t = std::hel::intmax_t;
|
---|
| 48 | using intptr_t = std::hel::intptr_t;
|
---|
| 49 |
|
---|
| 50 | using int_fast8_t = std::hel::int8_t;
|
---|
| 51 | using int_fast16_t = std::hel::int16_t;
|
---|
| 52 | using int_fast32_t = std::hel::int32_t;
|
---|
| 53 | using int_fast64_t = std::hel::int64_t;
|
---|
[b83ec692] | 54 |
|
---|
[de53138] | 55 | using int_least8_t = std::hel::int8_t;
|
---|
| 56 | using int_least16_t = std::hel::int16_t;
|
---|
| 57 | using int_least32_t = std::hel::int32_t;
|
---|
| 58 | using int_least64_t = std::hel::int64_t;
|
---|
[6702d7e] | 59 |
|
---|
[de53138] | 60 | using uint8_t = std::hel::uint8_t;
|
---|
| 61 | using uint16_t = std::hel::uint16_t;
|
---|
| 62 | using uint32_t = std::hel::uint32_t;
|
---|
| 63 | using uint64_t = std::hel::uint64_t;
|
---|
[6702d7e] | 64 |
|
---|
[de53138] | 65 | using uintmax_t = std::hel::uintmax_t;
|
---|
| 66 | using uintptr_t = std::hel::uintptr_t;
|
---|
[6702d7e] | 67 |
|
---|
[de53138] | 68 | using uint_fast8_t = std::hel::uint8_t;
|
---|
| 69 | using uint_fast16_t = std::hel::uint16_t;
|
---|
| 70 | using uint_fast32_t = std::hel::uint32_t;
|
---|
| 71 | using uint_fast64_t = std::hel::uint64_t;
|
---|
[6702d7e] | 72 |
|
---|
[de53138] | 73 | using uint_least8_t = std::hel::uint8_t;
|
---|
| 74 | using uint_least16_t = std::hel::uint16_t;
|
---|
| 75 | using uint_least32_t = std::hel::uint32_t;
|
---|
| 76 | using uint_least64_t = std::hel::uint64_t;
|
---|
[b83ec692] | 77 | }
|
---|
| 78 |
|
---|
[ffd94b9] | 79 | using int8_t = std::hel::int8_t;
|
---|
| 80 | using int16_t = std::hel::int16_t;
|
---|
| 81 | using int32_t = std::hel::int32_t;
|
---|
| 82 | using int64_t = std::hel::int64_t;
|
---|
| 83 |
|
---|
| 84 | using intmax_t = std::hel::intmax_t;
|
---|
| 85 | using intptr_t = std::hel::intptr_t;
|
---|
| 86 |
|
---|
| 87 | using int_fast8_t = std::hel::int8_t;
|
---|
| 88 | using int_fast16_t = std::hel::int16_t;
|
---|
| 89 | using int_fast32_t = std::hel::int32_t;
|
---|
| 90 | using int_fast64_t = std::hel::int64_t;
|
---|
| 91 |
|
---|
| 92 | using int_least8_t = std::hel::int8_t;
|
---|
| 93 | using int_least16_t = std::hel::int16_t;
|
---|
| 94 | using int_least32_t = std::hel::int32_t;
|
---|
| 95 | using int_least64_t = std::hel::int64_t;
|
---|
| 96 |
|
---|
| 97 | using uint8_t = std::hel::uint8_t;
|
---|
| 98 | using uint16_t = std::hel::uint16_t;
|
---|
| 99 | using uint32_t = std::hel::uint32_t;
|
---|
| 100 | using uint64_t = std::hel::uint64_t;
|
---|
| 101 |
|
---|
| 102 | using uintmax_t = std::hel::uintmax_t;
|
---|
| 103 | using uintptr_t = std::hel::uintptr_t;
|
---|
| 104 |
|
---|
| 105 | using uint_fast8_t = std::hel::uint8_t;
|
---|
| 106 | using uint_fast16_t = std::hel::uint16_t;
|
---|
| 107 | using uint_fast32_t = std::hel::uint32_t;
|
---|
| 108 | using uint_fast64_t = std::hel::uint64_t;
|
---|
| 109 |
|
---|
| 110 | using uint_least8_t = std::hel::uint8_t;
|
---|
| 111 | using uint_least16_t = std::hel::uint16_t;
|
---|
| 112 | using uint_least32_t = std::hel::uint32_t;
|
---|
| 113 | using uint_least64_t = std::hel::uint64_t;
|
---|
| 114 |
|
---|
[b83ec692] | 115 | #endif
|
---|