Skip to content

Commit

Permalink
Do not include config.h from C files. Include it from the compiler co…
Browse files Browse the repository at this point in the history
…mmand line instead.
  • Loading branch information
frank-zago committed Feb 7, 2011
1 parent eeca060 commit d9659a0
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bin_PROGRAMS = xgalaga-sdl

xgalaga_sdl_LDADD = @SDL_LIBS@
xgalaga_sdl_CFLAGS = -DDATADIR=\"@datadir@\" @SDL_CPPFLAGS@
xgalaga_sdl_CFLAGS = -include config.h -DDATADIR=\"@datadir@\" @SDL_CPPFLAGS@

xgalaga_sdl_SOURCES = \
SFont.c \
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
xgalaga_sdl_LDADD = @SDL_LIBS@
xgalaga_sdl_CFLAGS = -DDATADIR=\"@datadir@\" @SDL_CPPFLAGS@
xgalaga_sdl_CFLAGS = -include config.h -DDATADIR=\"@datadir@\" @SDL_CPPFLAGS@
xgalaga_sdl_SOURCES = \
SFont.c \
SFont.h \
Expand Down
2 changes: 0 additions & 2 deletions src/highscore.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
* 02110-1301, USA.
*/

#include "config.h"

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
Expand Down
2 changes: 0 additions & 2 deletions src/images.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
* 02110-1301, USA.
*/

#include "config.h"

#include <SDL/SDL.h>
#include <SDL/SDL_image.h>

Expand Down
2 changes: 0 additions & 2 deletions src/joystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
* 02110-1301, USA.
*/

#include "config.h"

#include "xgalaga.h"

static SDL_Joystick *js_device;
Expand Down
2 changes: 0 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
* 02110-1301, USA.
*/

#include "config.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down
2 changes: 0 additions & 2 deletions src/pathfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
* 02110-1301, USA.
*/

#include "config.h"

#include <stdio.h>
#include <string.h>
#ifdef HAVE_STRINGS_H
Expand Down
2 changes: 0 additions & 2 deletions src/score.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
* 02110-1301, USA.
*/

#include "config.h"

#include <stdio.h>
#include <string.h>

Expand Down
2 changes: 0 additions & 2 deletions src/title.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
* 02110-1301, USA.
*/

#include "config.h"

#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
Expand Down

0 comments on commit d9659a0

Please sign in to comment.