add guards around config.h

SVN revision: 34662
This commit is contained in:
doursse 2008-05-25 05:15:21 +00:00 committed by doursse
parent 6df0eef45f
commit ada9638cbe
1 changed files with 10 additions and 6 deletions

View File

@ -1,6 +1,10 @@
#ifndef MAIN_H #ifndef MAIN_H
#define MAIN_H #define MAIN_H
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -13,7 +17,6 @@
#endif #endif
#include <Evas.h> #include <Evas.h>
#include "config.h"
#if HAVE_EVAS_SOFTWARE_X11 #if HAVE_EVAS_SOFTWARE_X11
#include "engine_software_x11.h" #include "engine_software_x11.h"
#endif #endif
@ -50,6 +53,7 @@
#if HAVE_EVAS_DIRECTFB #if HAVE_EVAS_DIRECTFB
#include "engine_directfb.h" #include "engine_directfb.h"
#endif #endif
#include "ui.h" #include "ui.h"
#include "about.h" #include "about.h"
@ -58,12 +62,12 @@
extern Evas *evas; extern Evas *evas;
extern int win_w, win_h; extern int win_w, win_h;
void srnd(void); void srnd(void);
unsigned int rnd(void); unsigned int rnd(void);
double get_time(void); double get_time(void);
const char *build_path(const char *filename); const char *build_path(const char *filename);
void engine_loop(void); void engine_loop(void);
int engine_abort(void); int engine_abort(void);
#define KEY_STD \ #define KEY_STD \
if ((!strcmp(key, "Escape")) || (!strcmp(key, "q")) || (!strcmp(key, "Q")) || (!strcmp(key, "Return"))) \ if ((!strcmp(key, "Escape")) || (!strcmp(key, "q")) || (!strcmp(key, "Q")) || (!strcmp(key, "Return"))) \