changeset 30163:257ef2adfd66

Add multiple inclusion guards to all mp3lib headers.
author diego
date Mon, 04 Jan 2010 14:42:59 +0000
parents 00c918779261
children 51ee44af067b
files mp3lib/huffman.h mp3lib/l2tables.h mp3lib/mp3.h mp3lib/mpg123.h
diffstat 4 files changed, 17 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mp3lib/huffman.h	Mon Jan 04 13:13:10 2010 +0000
+++ b/mp3lib/huffman.h	Mon Jan 04 14:42:59 2010 +0000
@@ -6,6 +6,9 @@
  * smaller tables are often the part of a bigger table
  */
 
+#ifndef MPLAYER_MP3LIB_HUFFMAN_H
+#define MPLAYER_MP3LIB_HUFFMAN_H
+
 struct newhuff
 {
   unsigned int linbits;
@@ -329,4 +332,4 @@
  { /* 1 , 1 , */ 0 , tab_c1 }
 };
 
-
+#endif /* MPLAYER_MP3LIB_HUFFMAN_H */
--- a/mp3lib/l2tables.h	Mon Jan 04 13:13:10 2010 +0000
+++ b/mp3lib/l2tables.h	Mon Jan 04 14:42:59 2010 +0000
@@ -4,6 +4,9 @@
  * $Id$
  */
 
+#ifndef MPLAYER_MP3LIB_L2TABLES_H
+#define MPLAYER_MP3LIB_L2TABLES_H
+
 /*
  * Layer 2 Alloc tables ..
  * most other tables are calculated on program start (which is (of course)
@@ -158,3 +161,4 @@
     {2,0},{5,3},{7,5},{10,9},
     {2,0},{5,3},{7,5},{10,9}  };
 
+#endif /* MPLAYER_MP3LIB_L2TABLES_H */
--- a/mp3lib/mp3.h	Mon Jan 04 13:13:10 2010 +0000
+++ b/mp3lib/mp3.h	Mon Jan 04 14:42:59 2010 +0000
@@ -1,5 +1,8 @@
 /* MP3 Player Library 2.0      (C) 1999 A'rpi/Astral&ESP-team  */
 
+#ifndef MPLAYER_MP3LIB_MP3_H
+#define MPLAYER_MP3LIB_MP3_H
+
 /* decoder level: */
 #ifdef CONFIG_FAKE_MONO
 void MP3_Init(int fakemono);
@@ -33,3 +36,4 @@
 void MP3_Stop(void);
 void MP3_CloseDevice(void);
 
+#endif /* MPLAYER_MP3LIB_MP3_H */
--- a/mp3lib/mpg123.h	Mon Jan 04 13:13:10 2010 +0000
+++ b/mp3lib/mpg123.h	Mon Jan 04 14:42:59 2010 +0000
@@ -9,6 +9,9 @@
  * used source: musicout.h from mpegaudio package
  */
 
+#ifndef MPLAYER_MP3LIB_MPG123_H
+#define MPLAYER_MP3LIB_MPG123_H
+
 #include "config.h"
 
 #ifndef M_PI
@@ -126,3 +129,5 @@
 
 typedef int (*synth_func_t)( real *,int,short * );
 typedef void (*dct36_func_t)(real *,real *,real *,real *,real *);
+
+#endif /* MPLAYER_MP3LIB_MPG123_H */