Skip to content

Commit

Permalink
Some hacks that prevent weird __attribute__ related errors when compi…
Browse files Browse the repository at this point in the history
…ling on Win32, so I can actaully hack on Blizkost again.
  • Loading branch information
unknown authored and unknown committed Mar 5, 2010
1 parent 0fe41d3 commit ac53c46
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pmc/p5interpreter.pmc
Expand Up @@ -14,6 +14,10 @@ These are the vtable functions for the P5Interpreter class.
*/

/* Various Perl 5 headers plus XS initialization. */
#undef __attribute__
#undef __attribute__noreturn__
#undef __attribute__deprecated__
#define __attribute__(x) /* */
#include "init_with_xs.h"

/* Need to know a bit about other PMCs. */
Expand Down
4 changes: 4 additions & 0 deletions src/pmc/p5invocation.pmc
Expand Up @@ -16,6 +16,10 @@ invocation model and calling conventions.
*/

/* Various Perl 5 headers that we need. */
#undef __attribute__
#undef __attribute__noreturn__
#undef __attribute__deprecated__
#define __attribute__(x) /* */
#include <EXTERN.h>
#include <perl.h>

Expand Down
4 changes: 4 additions & 0 deletions src/pmc/p5namespace.pmc
Expand Up @@ -15,6 +15,10 @@ These are the vtable functions for the P5Namespace class.
*/

/* Various Perl 5 headers that we need. */
#undef __attribute__
#undef __attribute__noreturn__
#undef __attribute__deprecated__
#define __attribute__(x) /* */
#include <EXTERN.h>
#include <perl.h>

Expand Down
4 changes: 4 additions & 0 deletions src/pmc/p5scalar.pmc
Expand Up @@ -15,6 +15,10 @@ These are the vtable functions for the P5Scalar class.
*/

/* Various Perl 5 headers that we need. */
#undef __attribute__
#undef __attribute__noreturn__
#undef __attribute__deprecated__
#define __attribute__(x) /* */
#include <EXTERN.h>
#include <perl.h>

Expand Down
4 changes: 4 additions & 0 deletions src/pmc/p5sub.pmc
Expand Up @@ -15,6 +15,10 @@ These are the vtable functions for the P5Sub class.
*/

/* Various Perl 5 headers that we need. */
#undef __attribute__
#undef __attribute__noreturn__
#undef __attribute__deprecated__
#define __attribute__(x) /* */
#include <EXTERN.h>
#include <perl.h>

Expand Down

0 comments on commit ac53c46

Please sign in to comment.