Skip to content

Commit

Permalink
Quiet all redefinition warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Apr 4, 2010
1 parent 9e586b0 commit e7d4b67
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/pmc/blizkost.h
Expand Up @@ -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>
Expand Down

0 comments on commit e7d4b67

Please sign in to comment.