# HG changeset patch # User diego # Date 1262616179 0 # Node ID 257ef2adfd66105887555df0037cb6b8ae40ac8d # Parent 00c9187792613368e3f04331017c9a41bf7ca81e Add multiple inclusion guards to all mp3lib headers. diff -r 00c918779261 -r 257ef2adfd66 mp3lib/huffman.h --- 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 */ diff -r 00c918779261 -r 257ef2adfd66 mp3lib/l2tables.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 */ diff -r 00c918779261 -r 257ef2adfd66 mp3lib/mp3.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 */ diff -r 00c918779261 -r 257ef2adfd66 mp3lib/mpg123.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 */