mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 02:46:06 +00:00

reland of https://github.com/llvm/llvm-project/pull/98215 Additionally adds proxy headers for FILE and the fopencookie types The arm32 build has been failing due to redefinitions of the off_t type. This patch fixes this by moving off_t to a proper proxy header. To do this, it also moves stdio macros to a proxy header to hopefully avoid including this proxy header alongside this public stdio.h.
23 lines
603 B
C
23 lines
603 B
C
//===-- Macros defined in stdio.h header file -----------------------------===//
|
|
//
|
|
// 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_MACROS_STDIO_MACROS_H
|
|
#define LLVM_LIBC_MACROS_STDIO_MACROS_H
|
|
|
|
#ifndef EOF
|
|
#define EOF (-1)
|
|
#endif
|
|
|
|
#define BUFSIZ 1024
|
|
|
|
#define _IONBF 2
|
|
#define _IOLBF 1
|
|
#define _IOFBF 0
|
|
|
|
#endif // LLVM_LIBC_MACROS_STDIO_MACROS_H
|