summaryrefslogtreecommitdiff
path: root/lib/ktl/include/cstdio
blob: 349e736f890f3389d916713fd983c0e0021f57dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2020 The Fuchsia Authors
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT

#ifndef ZIRCON_KERNEL_LIB_KTL_INCLUDE_CSTDIO_
#define ZIRCON_KERNEL_LIB_KTL_INCLUDE_CSTDIO_

// The kernel doesn't want this file but some libc++ headers we need
// wind up including it and they need these declarations.
//
// Note this specifically avoids <stdio.h> because libc++ doesn't need that
// but <string_view> indirectly reaches <cstdio> and the kernel's <stdio.h>
// uses <ktl/string_view.h> so there would be a circularity.

#include <wchar.h>

#define EOF (-1)

#endif  // ZIRCON_KERNEL_LIB_KTL_INCLUDE_CSTDIO_