blob: 1060fe600d4430a7ef29bbec8f05fa1ae8431b56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
From 80ddc06b39dd1164733b69b68231b497f51840ad Mon Sep 17 00:00:00 2001
From: orbea <orbea@riseup.net>
Date: Tue, 10 Sep 2019 10:33:19 -0700
Subject: [PATCH] Fix build with gcc5.
v2: Replace all instances of math.h with cmath.
---
layers/core_validation.cpp | 1 -
layers/parameter_validation_utils.cpp | 2 +-
tests/vktestframework.cpp | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 4c3da8b5f..359c21e32 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -44,7 +44,6 @@
#include <cmath>
#include <iostream>
#include <list>
-#include <math.h>
#include <map>
#include <memory>
#include <mutex>
diff --git a/layers/parameter_validation_utils.cpp b/layers/parameter_validation_utils.cpp
index 1559ac455..6e67586f5 100644
--- a/layers/parameter_validation_utils.cpp
+++ b/layers/parameter_validation_utils.cpp
@@ -21,7 +21,7 @@
#define NOMINMAX
-#include <math.h>
+#include <cmath>
#include "chassis.h"
#include "stateless_validation.h"
diff --git a/tests/vktestframework.cpp b/tests/vktestframework.cpp
index 0d9dd584a..ad0338517 100644
--- a/tests/vktestframework.cpp
+++ b/tests/vktestframework.cpp
@@ -38,7 +38,7 @@
#pragma warning(pop)
#endif
#include <limits.h>
-#include <math.h>
+#include <cmath>
#if defined(PATH_MAX) && !defined(MAX_PATH)
#define MAX_PATH PATH_MAX
|