Skip to content

Commit aa5d1a2

Browse files
committed
config.h generated by autoheader should be included directly by the .cc files on not .h files, since it by default does not contain any guards.
1 parent 0eb6370 commit aa5d1a2

File tree

9 files changed

+10
-4
lines changed

9 files changed

+10
-4
lines changed

src/adplay.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1818
*/
1919

20+
#include "config.h"
21+
2022
#include <stdlib.h>
2123
#include <stdio.h>
2224
#include <stdarg.h>

src/alsa.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1818
*/
1919

20+
#include "config.h"
2021
#include "defines.h"
2122
#include "alsa.h"
2223

src/defines.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#ifndef H_DEFINES
2121
#define H_DEFINES
2222

23-
#include "config.h"
24-
2523
/***** Defines *****/
2624

2725
// AdPlay/UNIX version string

src/disk.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1818
*/
1919

20+
#include "config.h"
2021
#include <iostream>
2122
#include <stdlib.h>
2223
#include <stdio.h>

src/esound.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1818
*/
1919

20+
#include "config.h"
2021
#include <stdlib.h>
2122
#include <unistd.h>
2223
#include <esd.h>

src/oss.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1818
*/
1919

20+
#include "config.h"
21+
2022
#include <stdlib.h>
2123
#include <stdio.h>
2224
#include <fcntl.h>

src/output.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1818
*/
1919

20+
#include "config.h"
21+
2022
#include <stdio.h>
2123
#include <adplug/emuopl.h>
2224
#include <adplug/kemuopl.h>

src/players.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
#ifndef H_PLAYERS
2626
#define H_PLAYERS
2727

28-
#include "config.h"
29-
3028
// Enumerate ALL outputs (regardless of availability)
3129
enum Outputs {none, null, ao, oss, disk, esound, qsa, sdl, alsa};
3230

src/sdl.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1818
*/
1919

20+
#include "config.h"
2021
#include <unistd.h>
2122

2223
#include "sdl.h"

0 commit comments

Comments
 (0)