mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibCore: Include math.h instead of defining isnan() in ArgsParser.cpp
This commit is contained in:
parent
87b2a6004f
commit
a45b6dbc07
Notes:
sideshowbarker
2024-07-18 05:42:49 +09:00
Author: https://github.com/nico
Commit: a45b6dbc07
Pull-request: https://github.com/SerenityOS/serenity/pull/9426
Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 2 deletions
|
@ -9,11 +9,10 @@
|
|||
#include <LibCore/ArgsParser.h>
|
||||
#include <getopt.h>
|
||||
#include <limits.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
static constexpr bool isnan(double __x) { return __builtin_isnan(__x); }
|
||||
|
||||
static Optional<double> convert_to_double(const char* s)
|
||||
{
|
||||
char* p;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue