Skip to content

Commit

Permalink
crypto: Use math.h definitions of isnan and isinf
Browse files Browse the repository at this point in the history
Unless you specify C++11, std::isnan and std::isinf are not guaranteed to be available. Instead, just use the math.h functions for now.

PR-URL: #19196
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Yihong Wang <yh.wang@ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
jer-gentoo authored and MylesBorins committed Aug 8, 2018
1 parent 7377c08 commit a38c496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
#include "v8.h"

#include <algorithm>
#include <cmath>
#include <errno.h>
#include <limits.h> // INT_MAX
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
Expand Down

0 comments on commit a38c496

Please sign in to comment.