llvm-project/libc/include/limits.h.def
Alfred Persson Forsberg 0fb3066873 [libc] Add limits.h
This header contains implementation specific constants.

The compiler already provides its own limits.h with numerical limits
conforming to freestanding ISO C. But it is missing extensions like
POSIX, and does for example not include <linux/limits.h> which is
expected on a Linux system, therefore, an LLVM libc implementation of
limits.h is needed for hosted (__STDC_HOSTED__) environments.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D156961
2023-08-14 01:35:44 +01:00

18 lines
548 B
Modula-2

//===-- C standard library header limits.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_LIMITS_H
#define LLVM_LIBC_LIMITS_H
#include <__llvm-libc-common.h>
#include <llvm-libc-macros/limits-macros.h>
%%public_api()
#endif // LLVM_LIBC_LIMITS_H