[packages/glslang] another take on isinf.patch
jajcus
jajcus at pld-linux.org
Thu Jul 14 15:16:53 CEST 2016
commit 40580437722c9cbdfe6fd05180800e14424e5e83
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Thu Jul 14 15:16:41 2016 +0200
another take on isinf.patch
isinf.patch | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/isinf.patch b/isinf.patch
index 3300a4e..d1873f4 100644
--- a/isinf.patch
+++ b/isinf.patch
@@ -1,13 +1,12 @@
diff -dur -x '*~' glslang-4678ca9dacfec7a084dbc69bbe568bdad6889f1b.orig/glslang/MachineIndependent/intermOut.cpp glslang-4678ca9dacfec7a084dbc69bbe568bdad6889f1b/glslang/MachineIndependent/intermOut.cpp
--- glslang-4678ca9dacfec7a084dbc69bbe568bdad6889f1b.orig/glslang/MachineIndependent/intermOut.cpp 2016-05-13 17:33:42.000000000 +0200
+++ glslang-4678ca9dacfec7a084dbc69bbe568bdad6889f1b/glslang/MachineIndependent/intermOut.cpp 2016-07-14 14:56:03.000000000 +0200
-@@ -49,6 +49,9 @@
+@@ -49,6 +49,8 @@
#ifdef _MSC_VER
return _fpclass(x) == _FPCLASS_PINF;
++#elif defined isinf
++ return isinf(x) && (x >= 0);
#elif defined __ANDROID__ || defined __linux__ || __MINGW32__ || __MINGW64__
-+#ifdef isinf
-+#undef isinf
-+#endif
return std::isinf(x) && (x >= 0);
#else
return isinf(x) && (x >= 0);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/glslang.git/commitdiff/40580437722c9cbdfe6fd05180800e14424e5e83
More information about the pld-cvs-commit
mailing list