[libc-commits] [libc] [libc] Remove the #include <stdlib.h> header (PR #114453)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Fri Nov 1 14:44:03 PDT 2024


================
@@ -8,8 +8,6 @@
 
 // #include "src/__support/str_float_conv_utils.h"
 
-#include <stdlib.h>
----------------
michaelrj-google wrote:

This test is built differently from the rest of them since it's mostly an ugly hack I used for performance/correctness testing while implementing strtofloat. If you want to run it then you need to run `ninja libc_str_to_float_comparison_test`. It needs the `stdlib` header since it's using the public names of the string to float functions, which is because I wanted to be able to switch it from using my implementation and the system implementation just in cmake.

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


More information about the libc-commits mailing list