mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +00:00
AK: Make sure we don't include Math.h or math.h from KERNEL
This commit is contained in:
parent
bc7c8879c5
commit
83603d68d2
Notes:
sideshowbarker
2024-07-17 11:35:03 +09:00
Author: https://github.com/ADKaster
Commit: 83603d68d2
Pull-request: https://github.com/SerenityOS/serenity/pull/13671
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/timschumi ✅
4 changed files with 19 additions and 6 deletions
|
@ -11,6 +11,10 @@
|
|||
#include <AK/StdLibExtraDetails.h>
|
||||
#include <AK/Types.h>
|
||||
|
||||
#ifdef KERNEL
|
||||
# error "Including AK/Math.h from the Kernel is never correct! Floating point is disabled."
|
||||
#endif
|
||||
|
||||
namespace AK {
|
||||
|
||||
template<FloatingPoint T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue