]> granicus.if.org Git - graphviz/commitdiff
hack to eliminate use of "register" from perl headers
authorellson <devnull@localhost>
Thu, 15 Jun 2006 12:25:00 +0000 (12:25 +0000)
committerellson <devnull@localhost>
Thu, 15 Jun 2006 12:25:00 +0000 (12:25 +0000)
   because gcc-4.1.1-3 doesn't like them

tclpkg/gv/Makefile.am

index 6b18e13151c119d6aaf3a0b62d177863ab4ac602..f1dd58d7d43499db166f846f5705a905520a4e53 100644 (file)
@@ -78,6 +78,8 @@ libgv_perl_la_LIBADD = $(BASELIBS) @PERL_LIBS@
 libgv_perl_la_LDFLAGS = 
 gv_perl.cpp $(PERL_hdr): gv.i
        $(SWIG) -c++ -perl -o gv_perl.cpp gv.i
+       (echo "#define register" ; cat gv_perl.cpp) > gv_perl.cpp.tmp
+       mv -f gv_perl.cpp.tmp gv_perl.cpp
 
 pkgphpdir = $(pkglibdir)/php
 PHP_hdr = gv.php php_gv.h