1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 01:57:35 +00:00

LibC: Drop complex.cpp and move its definitions to complex.h

libc++ disallows including LibC's complex.h in C++ mode. This means that
a C++ file cannot expect LibC's complex.h to be included, and thus
cannot use c-prefixed complex number functions. As a result,
complex.cpp is broken when libc++ has a higher include priority
than LibC.

A check for __cplusplus has been added to complex.h to warn users of
toolchains that don't use libc++.
This commit is contained in:
implicitfield 2023-04-29 23:05:59 +04:00 committed by Andreas Kling
parent 1cc199d365
commit cccb6c7287
3 changed files with 40 additions and 55 deletions

View file

@ -1,7 +1,6 @@
set(LIBC_SOURCES
arpa/inet.cpp
assert.cpp
complex.cpp
ctype.cpp
cxxabi.cpp
dirent.cpp