[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] compiling swftools 0.9.0 on Fedora Core 12 - invalid c

From: Dr. Stephen S Kelley
Subject: [Swftools-common] compiling swftools 0.9.0 on Fedora Core 12 - invalid conversion from const char* to char* errors
Date: Mon, 7 Dec 2009 10:20:07 -0600

The changes below enabled me to compile swftools 0.9.0 on a fedora core 12 system. I don’t yet know if these changes have any unintended consequences.


diff -r swftools-0.9.0/lib/gfxsource.h swftools-0.9.1/lib/gfxsource.h


<     struct _gfxdocument* (*open)(struct _gfxsource*src, const char*filename);


>     struct _gfxdocument* (*open)(struct _gfxsource*src, char*filename);


diff -r swftools-0.9.0/lib/pdf/GFXOutputDev.cc swftools-0.9.1/lib/pdf/GFXOutputDev.cc


<     char*r1 = strrchr(filename, '/');

<     char*r2 = strrchr(filename, '\\');


>     const char*r1 = strrchr(filename, '/');

>     const char*r2 = strrchr(filename, '\\');


diff -r swftools-0.9.0/lib/pdf/pdf.cc swftools-0.9.1/lib/pdf/pdf.cc


< static gfxdocument_t*pdf_open(gfxsource_t*src, const char*filename)


> static gfxdocument_t*pdf_open(gfxsource_t*src, char*filename)

Only in swftools-0.9.1/lib/pdf: pdf.o

reply via email to

[Prev in Thread] Current Thread [Next in Thread]