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: https://github.com/SerenityOS/serenity/commit/a45b6dbc078 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
Reference in a new issue