[libc-commits] [libc] 52d707d - [libc][Obvious] Add few missing license headers.
Siva Chandra Reddy via libc-commits
libc-commits at lists.llvm.org
Thu Oct 20 17:03:13 PDT 2022
Author: Siva Chandra Reddy
Date: 2022-10-21T00:01:36Z
New Revision: 52d707d9fdc450fb84e3c250af79aa6c4db4b008
URL: https://github.com/llvm/llvm-project/commit/52d707d9fdc450fb84e3c250af79aa6c4db4b008
DIFF: https://github.com/llvm/llvm-project/commit/52d707d9fdc450fb84e3c250af79aa6c4db4b008.diff
LOG: [libc][Obvious] Add few missing license headers.
Added:
Modified:
libc/src/stdio/stderr.cpp
libc/src/stdio/stdout.cpp
Removed:
################################################################################
diff --git a/libc/src/stdio/stderr.cpp b/libc/src/stdio/stderr.cpp
index 60e9d94d7ecd..e3ceae94aa24 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 <stdio.h>
-extern FILE *stderr = reinterpret_cast<FILE *>(__llvm_libc::stderr);
+extern "C" FILE *stderr = reinterpret_cast<FILE *>(__llvm_libc::stderr);
diff --git a/libc/src/stdio/stdout.cpp b/libc/src/stdio/stdout.cpp
index 66fed5d0c35d..c64275a0a952 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 <stdio.h>
-extern FILE *stdout = reinterpret_cast<FILE *>(__llvm_libc::stdout);
+extern "C" FILE *stdout = reinterpret_cast<FILE *>(__llvm_libc::stdout);
More information about the libc-commits
mailing list