aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/lib/random
diff options
context:
space:
mode:
authorGravatar Derek Murray <mrry@google.com>2016-09-21 05:55:41 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-09-21 07:01:05 -0700
commit08a6ebc3ad2194a61ef310a1da97e4402a5a00bb (patch)
tree7a9687a6a991e4375e47eac745c2ffe704e314ef /tensorflow/core/lib/random
parent6333762303f2b858372ca779967d9fc1aa948b86 (diff)
Clean up warnings and IWYU in tensorflow/core/lib.
Change: 133826999
Diffstat (limited to 'tensorflow/core/lib/random')
-rw-r--r--tensorflow/core/lib/random/random_distributions.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/core/lib/random/random_distributions.h b/tensorflow/core/lib/random/random_distributions.h
index a48811053a..dc29dc1eaa 100644
--- a/tensorflow/core/lib/random/random_distributions.h
+++ b/tensorflow/core/lib/random/random_distributions.h
@@ -16,6 +16,10 @@ limitations under the License.
#ifndef TENSORFLOW_LIB_RANDOM_RANDOM_DISTRIBUTIONS_H_
#define TENSORFLOW_LIB_RANDOM_RANDOM_DISTRIBUTIONS_H_
+#define _USE_MATH_DEFINES
+#include <cmath>
+#undef _USE_MATH_DEFINES
+
#include <math.h>
#include <string.h>
#include <algorithm>