Browse Source

Include cmath instead of math.h

This fixes build on, at least, NetBSD 8.1 with gcc 5.5 and SmartOS with gcc 7.
Juraj Lutter 6 years ago
parent
commit
982222e71a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/google/protobuf/text_format.cc

+ 1 - 1
src/google/protobuf/text_format.cc

@@ -35,7 +35,7 @@
 #include <google/protobuf/text_format.h>
 #include <google/protobuf/text_format.h>
 
 
 #include <float.h>
 #include <float.h>
-#include <math.h>
+#include <cmath>
 #include <stdio.h>
 #include <stdio.h>
 
 
 #include <algorithm>
 #include <algorithm>