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 <[email protected]>
Reviewed-By: Yihong Wang <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
jer-gentoo authored and MylesBorins committed Aug 16, 2018
1 parent 8af6b75 commit 5a3dc37
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 5a3dc37

Please sign in to comment.