Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ppport.h on 5.10.1 gives a «"MUTABLE_PTR" redefined» #23

Closed
wolfsage opened this issue May 21, 2015 · 2 comments
Closed

ppport.h on 5.10.1 gives a «"MUTABLE_PTR" redefined» #23

wolfsage opened this issue May 21, 2015 · 2 comments
Milestone

Comments

@wolfsage
Copy link
Collaborator

Reported by Leont. Should probably fix.

@wolfsage
Copy link
Collaborator Author

@Leont - how's this look:

diff --git a/parts/inc/magic b/parts/inc/magic
index a99cd80..bf43a9c 100644
--- a/parts/inc/magic
+++ b/parts/inc/magic
@@ -29,13 +29,15 @@ __UNDEFINED__  SvGETMAGIC(x) STMT_START { if (SvGMAGICAL(x)) mg_get(x); } STMT_E

 __UNDEFINED__  HEf_SVKEY   -2

+#ifndef MUTABLE_PTR
 #if defined(__GNUC__) && !defined(PERL_GCC_BRACE_GROUPS_FORBIDDEN)
 #  define MUTABLE_PTR(p) ({ void *_p = (p); _p; })
 #else
 #  define MUTABLE_PTR(p) ((void *) (p))
 #endif
+#endif

-#define MUTABLE_SV(p)   ((SV *)MUTABLE_PTR(p))
+__UNDEFINED__ MUTABLE_SV(p)   ((SV *)MUTABLE_PTR(p))

 /* end of random bits */

@wolfsage
Copy link
Collaborator Author

Should go out in 3.33 soon

@wolfsage wolfsage added this to the Release-3.33 milestone Mar 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant