Skip to content

Commit 5a3dc37

Browse files
jer-gentooMylesBorins
authored andcommitted
crypto: Use math.h definitions of isnan and isinf
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]>
1 parent 8af6b75 commit 5a3dc37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/node_crypto.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
#include"v8.h"
3737

3838
#include<algorithm>
39+
#include<cmath>
3940
#include<errno.h>
4041
#include<limits.h>// INT_MAX
41-
#include<math.h>
4242
#include<stdlib.h>
4343
#include<string.h>
4444
#include<vector>

0 commit comments

Comments
(0)