summaryrefslogtreecommitdiffstats
path: root/graphics/vulkan-sdk/cmath.patch
diff options
context:
space:
mode:
author Hunter Sezen <orbea@riseup.net>2019-09-21 05:52:36 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2019-09-21 05:52:36 +0700
commit41235556234327c494e130d1873f07f551533a4b (patch)
tree304e7075e7e58ed3cf3c92283622481175e64e19 /graphics/vulkan-sdk/cmath.patch
parent38aac3bf72b9f4b1f8d5050411fe8406ccfbc1a5 (diff)
downloadslackbuilds-41235556234327c494e130d1873f07f551533a4b.tar.gz
slackbuilds-41235556234327c494e130d1873f07f551533a4b.tar.xz
graphics/vulkan-sdk: Updated for version 1.1.121.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/vulkan-sdk/cmath.patch')
-rw-r--r--graphics/vulkan-sdk/cmath.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/graphics/vulkan-sdk/cmath.patch b/graphics/vulkan-sdk/cmath.patch
new file mode 100644
index 0000000000..1060fe600d
--- /dev/null
+++ b/graphics/vulkan-sdk/cmath.patch
@@ -0,0 +1,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