mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 23:49:22 +08:00
Summary: I've noticed one problem is that the user includes `stdint.h` the compiler will do `#include_next <stdint.h>` potentially into a conflicting implementation on systems with multiple headers installed. The `clang` header is standards compliant and works with `clang` and `gcc` which are both of our targets, so I simply copied it here. This has the effect of including `stdint.h` on clang / LLVM libc behaving the same as `-ffreestanding`.
15 lines
499 B
Modula-2
15 lines
499 B
Modula-2
//===-- C standard library header stdint.h --------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIBC_STDINT_H
|
|
#define LLVM_LIBC_STDINT_H
|
|
|
|
#include <llvm-libc-macros/stdint-macros.h>
|
|
|
|
#endif // LLVM_LIBC_STDINT_H
|