[xiph-commits] r13806 - in trunk/theora/lib: . enc

giles at svn.xiph.org giles at svn.xiph.org
Fri Sep 14 11:32:41 PDT 2007


Author: giles
Date: 2007-09-14 11:32:40 -0700 (Fri, 14 Sep 2007)
New Revision: 13806

Modified:
   trunk/theora/lib/enc/codec_internal.h
   trunk/theora/lib/internal.h
Log:
Promote TH_DEBUG to the common internal header. Fixes a compile problem.


Modified: trunk/theora/lib/enc/codec_internal.h
===================================================================
--- trunk/theora/lib/enc/codec_internal.h	2007-09-14 14:14:33 UTC (rev 13805)
+++ trunk/theora/lib/enc/codec_internal.h	2007-09-14 18:32:40 UTC (rev 13806)
@@ -32,13 +32,6 @@
 #define theora_read(x,y,z) ( oggpackB_read(x,y,z) )
 #endif
 
-#ifdef DEBUG
-#include <stdio.h>
-#define TH_DEBUG(x) fprintf(stderr, x)
-#else
-#define TH_DEBUG(x)
-#endif
-
 #define CURRENT_ENCODE_VERSION   1
 #define HUGE_ERROR              (1<<28)  /*  Out of range test value */
 

Modified: trunk/theora/lib/internal.h
===================================================================
--- trunk/theora/lib/internal.h	2007-09-14 14:14:33 UTC (rev 13805)
+++ trunk/theora/lib/internal.h	2007-09-14 18:32:40 UTC (rev 13806)
@@ -5,7 +5,7 @@
  * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
  * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
  *                                                                  *
- * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2003                *
+ * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2007                *
  * by the Xiph.Org Foundation http://www.xiph.org/                  *
  *                                                                  *
  ********************************************************************
@@ -27,6 +27,14 @@
 # include "dec/huffman.h"
 # include "dec/quant.h"
 
+/* debug macros */
+#ifdef DEBUG
+#include <stdio.h>
+#define TH_DEBUG(x) fprintf(stderr, x)
+#else
+#define TH_DEBUG(x)
+#endif
+
 /*Thank you Microsoft, I know the order of operations.*/
 # if defined(_MSC_VER)
 #  pragma warning(disable:4554)



More information about the commits mailing list