Explorar o código

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 %!s(int64=6) %!d(string=hai) anos
pai
achega
982222e71a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 <float.h>
-#include <math.h>
+#include <cmath>
 #include <stdio.h>
 
 #include <algorithm>