Files
clang-p2996/libc/src/stdio/stderr.cpp
Siva Chandra Reddy 9b8ca3c1f1 [libc] Add global stdout and stderr objects.
They are added as entrypoint object targets. The header-gen
infrastructure has been extended to enable handling standard required
global objects. The libc-api-test has also been extended to verify the
global object declarations.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D126329
2022-05-27 05:43:49 +00:00

6 lines
127 B
C++

#include "src/__support/File/file.h"
#include <stdio.h>
extern FILE *stderr = reinterpret_cast<FILE *>(__llvm_libc::stderr);