summaryrefslogtreecommitdiff
path: root/graphics/nvidia-texture-tools/files/patch-src-nvmath-nvmath.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/nvidia-texture-tools/files/patch-src-nvmath-nvmath.h')
-rw-r--r--graphics/nvidia-texture-tools/files/patch-src-nvmath-nvmath.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/nvidia-texture-tools/files/patch-src-nvmath-nvmath.h b/graphics/nvidia-texture-tools/files/patch-src-nvmath-nvmath.h
new file mode 100644
index 000000000000..6230ee1a5c8a
--- /dev/null
+++ b/graphics/nvidia-texture-tools/files/patch-src-nvmath-nvmath.h
@@ -0,0 +1,20 @@
+--- src/nvmath/nvmath.h.orig 2008-12-01 11:04:28.000000000 +0300
++++ src/nvmath/nvmath.h 2009-03-06 22:38:28.000000000 +0300
+@@ -97,7 +97,7 @@
+ {
+ #if NV_OS_WIN32
+ return _finite(f) != 0;
+-#elif NV_OS_DARWIN
++#elif NV_OS_DARWIN || NV_OS_FREEBSD
+ return isfinite(f);
+ #elif NV_OS_LINUX
+ return finitef(f);
+@@ -112,7 +112,7 @@
+ {
+ #if NV_OS_WIN32
+ return _isnan(f) != 0;
+-#elif NV_OS_DARWIN
++#elif NV_OS_DARWIN || NV_OS_FREEBSD
+ return isnan(f);
+ #elif NV_OS_LINUX
+ return isnanf(f);