Skip to content
Browse files

[GH #844] Make gziphandle C++ safe

Wrap #include <zlib.h> into PMC_HEADER_PREAMBLE to be able to use
ATTR gzFile file. This is now C++ safe and clang++ compiles fine.
  • Loading branch information...
1 parent 64fd80f commit fdd0ca3cc18c7e79858e53ce5ba26bf94ef655c0 @rurban rurban committed
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/dynpmc/gziphandle.pmc
View
7 src/dynpmc/gziphandle.pmc
@@ -1,5 +1,5 @@
/*
-Copyright (C) 2010-2011, Parrot Foundation.
+Copyright (C) 2010-2012, Parrot Foundation.
=head1 NAME
@@ -19,15 +19,16 @@ This PMC wraps the zlib.
*/
+BEGIN_PMC_HEADER_PREAMBLE
#include <zlib.h>
-#include "parrot/extend.h"
+END_PMC_HEADER_PREAMBLE
/* HEADERIZER HFILE: none */
/* HEADERIZER BEGIN: static */
/* HEADERIZER END: static */
pmclass GzipHandle extends Handle dynpmc auto_attrs {
- ATTR void *file;
+ ATTR gzFile file;
/*

0 comments on commit fdd0ca3

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