[libc-commits] [libc] [libc] Include empty remove in baremetal stdio.h (PR #85336)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Thu Mar 14 16:54:37 PDT 2024


================
@@ -0,0 +1,22 @@
+//===-- Linux implementation of remove ------------------------------------===//
+//
+// 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/stdio/remove.h"
+
+#include "src/__support/common.h"
+
+namespace LIBC_NAMESPACE {
+
+// TODO: See https://github.com/llvm/llvm-project/issues/85335 for more details
+// on why this is needed.
+
+LLVM_LIBC_FUNCTION(int, remove, (const char *)) {
----------------
michaelrj-google wrote:

I think we can do that in future if we need a default implementation, but I think it's better to only provide this stub where it's necessary right now.

https://github.com/llvm/llvm-project/pull/85336


More information about the libc-commits mailing list