[Therion] Patch to allow compilation with GCC 4.1

2006-03-16 Thread Martin Budaj
Thanks, it'll be applied.
Martin

On 3/15/06, Olly Betts  wrote:
>
> Therion fails to compile with GCC 4.1 due to a couple of problems.
> There's a patch in this bug report:
>
> http://bugs.debian.org/356875
>
> Direct link to the patch:
>
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi/therion-0.3.9-ftbfs-with-gcc-4.1.patch?bug=356875;msg=14;att=1
>
> Cheers,
> Olly
> ___
> Therion mailing list
> Therion at speleo.cz
> http://www.speleo.cz/mailman/listinfo/therion
>
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://mailman.speleo.sk/pipermail/therion/attachments/20060316/e80e8739/attachment.html>


[Therion] Scaling issues with .3d files

2006-03-16 Thread Olly Betts
On Wed, Mar 15, 2006 at 08:51:15AM -0500, Philip Schuchardt wrote:
> Nope that didnt fix it.

Ah yes, I need to also fix the get32() function.  Can you try the
attached patch?  To apply it:

cd therion-0.3.9
patch -p0 < img.patch

(if you've already made the previous change it'll say the first hunk is
already applied and ask if you want to reverse the patch - just say no
and ignore the first hunk failing to apply).

And then rebuild and reinstall.

Cheers,
Olly
-- next part --
--- extern/img.c~   2006-03-16 05:48:23.623026392 +
+++ extern/img.c2006-03-16 05:49:13.443452536 +
@@ -38,7 +38,7 @@
 # define TIMENA msg(/*Date and time not available.*/108)
 # define TIMEFMT msg(/*%a,%Y.%m.%d %H:%M:%S %Z*/107)
 #else
-# define INT32_T long
+# define INT32_T int
 # define TIMENA "Time not available."
 # define TIMEFMT "%a,%Y.%m.%d %H:%M:%S %Z"
 # define EXT_SVX_3D "3d"
@@ -64,13 +64,13 @@
 # define fputsnl(S, FH) do {fputs((S), (FH)); putc('\n', (FH));} while(0)
 # define SVX_ASSERT(X)

-static long
+static INT32_T
 get32(FILE *fh)
 {
-   long w = getc(fh);
-   w |= (long)getc(fh) << 8l;
-   w |= (long)getc(fh) << 16l;
-   w |= (long)getc(fh) << 24l;
+   INT32_T w = getc(fh);
+   w |= (INT32_T)getc(fh) << 8l;
+   w |= (INT32_T)getc(fh) << 16l;
+   w |= (INT32_T)getc(fh) << 24l;
return w;
 }