Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libc/src/__support/CPP/new.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//

#include "new.h"
#include <stdlib.h>

void operator delete(void *mem) noexcept { ::free(mem); }

Expand Down
2 changes: 1 addition & 1 deletion libc/src/__support/CPP/new.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "src/__support/macros/properties/os.h"

#include <stddef.h> // For size_t
#include <stdlib.h>
#include <stdlib.h> // For malloc, free etc.

// Defining members in the std namespace is not preferred. But, we do it here
// so that we can use it to define the operator new which takes std::align_val_t
Expand Down
2 changes: 2 additions & 0 deletions libc/test/src/__support/str_to_float_comparison_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

// #include "src/__support/str_float_conv_utils.h"

#include <stdlib.h>

// #include "src/__support/FPUtil/FPBits.h"

#include <cstdint>
Expand Down
1 change: 0 additions & 1 deletion libc/test/src/string/strlcat_test.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

//===-- Unittests for strlcat ---------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
Loading