[vorbis-dev] Patch to get libogg2 to build with gcc 2.96

Carsten Haese carsten at uniqsys.com
Tue Jul 22 13:59:16 PDT 2003



Hi,

When I built libogg2 for testing the new vorbose utility, gcc 2.96
stumbled over a portion from stream.c that mixes variable declarations
with statements. The patch below fixes this.

-Carsten.

Index: stream.c
===================================================================
RCS file: /usr/local/cvsroot/ogg/src/Attic/stream.c,v
retrieving revision 1.1.2.12
diff -u -r1.1.2.12 stream.c
--- stream.c	29 Mar 2003 00:07:32 -0000	1.1.2.12
+++ stream.c	22 Jul 2003 20:51:09 -0000
@@ -290,9 +290,10 @@
       /* process/prepare next page, if any */
 
       ogg_page og;               /* only for parsing header values */
-      og.header=os->header_tail; /* only for parsing header values */
-      long pageno=ogg_page_pageno(&og);
+      long pageno;
       oggbyte_buffer ob;
+      og.header=os->header_tail; /* only for parsing header values */
+      pageno=ogg_page_pageno(&og);
 
       oggbyte_init(&ob,os->header_tail,0);
       os->lacing_fill=oggbyte_read1(&ob,26);

<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list