[FastISel] Support unreachable with NoTrapAfterNoReturn (#118296)
[llvm-project.git] / libc / include / llvm-libc-macros / stdio-macros.h
blob96f0e6933ade68899044cd34002b434bde5f818d
1 //===-- Macros defined in stdio.h header file -----------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_MACROS_STDIO_MACROS_H
10 #define LLVM_LIBC_MACROS_STDIO_MACROS_H
12 #include "../llvm-libc-types/FILE.h"
14 #ifdef __cplusplus
15 extern "C" FILE *stdin;
16 extern "C" FILE *stdout;
17 extern "C" FILE *stderr;
18 #else
19 extern FILE *stdin;
20 extern FILE *stdout;
21 extern FILE *stderr;
22 #endif
24 #ifndef stdin
25 #define stdin stdin
26 #endif
28 #ifndef stdout
29 #define stdout stdout
30 #endif
32 #ifndef stderr
33 #define stderr stderr
34 #endif
36 #ifndef EOF
37 #define EOF (-1)
38 #endif
40 #define BUFSIZ 1024
42 #define _IONBF 2
43 #define _IOLBF 1
44 #define _IOFBF 0
46 #ifndef SEEK_SET
47 #define SEEK_SET 0
48 #endif
50 #ifndef SEEK_CUR
51 #define SEEK_CUR 1
52 #endif
54 #ifndef SEEK_END
55 #define SEEK_END 2
56 #endif
58 #endif // LLVM_LIBC_MACROS_STDIO_MACROS_H