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:
parent
1cc199d365
commit
cccb6c7287
3 changed files with 40 additions and 55 deletions
|
@ -1,7 +1,6 @@
|
|||
set(LIBC_SOURCES
|
||||
arpa/inet.cpp
|
||||
assert.cpp
|
||||
complex.cpp
|
||||
ctype.cpp
|
||||
cxxabi.cpp
|
||||
dirent.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue