Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 402194 Details for
Bug 510766
media-libs/nas: should not define abs() as macros
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to remove abs() and fabs()
nas-1.9.4-remove-abs.patch (text/plain), 646 bytes, created by
Anthony Basile
on 2015-04-28 19:08:11 UTC
(
hide
)
Description:
Patch to remove abs() and fabs()
Filename:
MIME Type:
Creator:
Anthony Basile
Created:
2015-04-28 19:08:11 UTC
Size:
646 bytes
patch
obsolete
>diff -Naur nas-1.9.4.orig/server/include/misc.h nas-1.9.4/server/include/misc.h >--- nas-1.9.4.orig/server/include/misc.h 2013-04-26 20:41:06.000000000 -0400 >+++ nas-1.9.4/server/include/misc.h 2014-05-14 12:46:21.347595909 -0400 >@@ -71,12 +71,6 @@ > > #define min(a, b) (((a) < (b)) ? (a) : (b)) > #define max(a, b) (((a) > (b)) ? (a) : (b)) >-#ifndef abs >-#define abs(a) ((a) > 0 ? (a) : -(a)) >-#endif >-#ifndef fabs >-#define fabs(a) ((a) > 0.0 ? (a) : -(a)) /* floating absolute value */ >-#endif > #define sign(x) ((x) < 0 ? -1 : ((x) > 0 ? 1 : 0)) > /* this assumes b > 0 */ > #define modulus(a, b, d) if (((d) = (a) % (b)) < 0) (d) += (b)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 510766
: 402194