Skip to content
Browse files

Quiet all redefinition warnings.

  • Loading branch information...
1 parent 9e586b0 commit e7d4b671fd03e0f4191f42a809c61d67a626796f @sorear sorear committed Apr 4, 2010
Showing with 21 additions and 0 deletions.
  1. +21 −0 src/pmc/blizkost.h
View
21 src/pmc/blizkost.h
@@ -23,6 +23,27 @@ does the necessary cruft to import both in the same file.
#include "parrot/extend.h"
#include "parrot/dynext.h"
+/* clear out a few macros that Perl wants to define itself */
+
+#undef HASATTRIBUTE_PURE
+#undef HASATTRIBUTE_UNUSED
+#undef HASATTRIBUTE_NONNULL
+#undef HASATTRIBUTE_MALLOC
+#undef HASATTRIBUTE_NORETURN
+#undef HASATTRIBUTE_UNUSED
+#undef HASATTRIBUTE_WARN_UNUSED_RESULT
+#undef HASATTRIBUTE_DEPRECATED
+
+#undef _
+
+#undef __attribute__deprecated__
+#undef __attribute__format__
+#undef __attribute__nonnull__
+#undef __attribute__noreturn__
+#undef __attribute__pure__
+#undef __attribute__unused__
+#undef __attribute__warn_unused_result__
+
#define PERL_NO_GET_CONTEXT
#include <EXTERN.h>
#include <perl.h>

0 comments on commit e7d4b67

Please sign in to comment.
Something went wrong with that request. Please try again.