From 52d707d9fdc450fb84e3c250af79aa6c4db4b008 Mon Sep 17 00:00:00 2001 From: Siva Chandra Reddy Date: Fri, 21 Oct 2022 00:01:16 +0000 Subject: [PATCH] [libc][Obvious] Add few missing license headers. --- libc/src/stdio/stderr.cpp | 10 +++++++++- libc/src/stdio/stdout.cpp | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/libc/src/stdio/stderr.cpp b/libc/src/stdio/stderr.cpp index 60e9d94..e3ceae9 100644 --- a/libc/src/stdio/stderr.cpp +++ b/libc/src/stdio/stderr.cpp @@ -1,5 +1,13 @@ +//===-- Definition of the global stderr object ----------------------------===// +// +// 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 +// +//===----------------------------------------------------------------------===// + #include "src/__support/File/file.h" #include -extern FILE *stderr = reinterpret_cast(__llvm_libc::stderr); +extern "C" FILE *stderr = reinterpret_cast(__llvm_libc::stderr); diff --git a/libc/src/stdio/stdout.cpp b/libc/src/stdio/stdout.cpp index 66fed5d..c64275a 100644 --- a/libc/src/stdio/stdout.cpp +++ b/libc/src/stdio/stdout.cpp @@ -1,5 +1,13 @@ +//===-- Definition of the global stdout object ----------------------------===// +// +// 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 +// +//===----------------------------------------------------------------------===// + #include "src/__support/File/file.h" #include -extern FILE *stdout = reinterpret_cast(__llvm_libc::stdout); +extern "C" FILE *stdout = reinterpret_cast(__llvm_libc::stdout); -- 2.7.4