Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 396904 Details for
Bug 510770
app-text/texlive-core: should not define a macro for abs()
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch against texlive-core-2012
just-remove-abs.patch (text/plain), 940 bytes, created by
Anthony Basile
on 2015-02-18 23:41:26 UTC
(
hide
)
Description:
Patch against texlive-core-2012
Filename:
MIME Type:
Creator:
Anthony Basile
Created:
2015-02-18 23:41:26 UTC
Size:
940 bytes
patch
obsolete
>utils/pmx/pmx-2.6.18/libf2c/f2c.h: remove unnecesary macro for abs() > >On POSIX systems, abs() is a function provided by your C Standard library, >so we don't need to define it as a macro. It is dangerous to do so because >if f2c.h is included before stdlib.h, then then macro breaks the function >prototype. > >We just remove it. > >Signed-off-by: Anthony G. Basile <blueness@gentoo.org> > >diff -Naur texlive-20120701-source.orig/utils/pmx/pmx-2.6.18/libf2c/f2c.h texlive-20120701-source/utils/pmx/pmx-2.6.18/libf2c/f2c.h >--- texlive-20120701-source.orig/utils/pmx/pmx-2.6.18/libf2c/f2c.h 2012-05-20 10:47:27.000000000 +0000 >+++ texlive-20120701-source/utils/pmx/pmx-2.6.18/libf2c/f2c.h 2014-05-15 17:16:37.030402773 +0000 >@@ -157,7 +157,6 @@ > }; > typedef struct Namelist Namelist; > >-#define abs(x) ((x) >= 0 ? (x) : -(x)) > #define dabs(x) (doublereal)abs(x) > #define min(a,b) ((a) <= (b) ? (a) : (b)) > #define max(a,b) ((a) >= (b) ? (a) : (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 510770
:
396902
| 396904 |
397674
|
397676
|
400996
|
401048