diff options
author | doursse <doursse> | 2008-05-25 05:15:21 +0000 |
---|---|---|
committer | doursse <doursse@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33> | 2008-05-25 05:15:21 +0000 |
commit | ada9638cbece8b3fb6d79eacfd7dc844537b2e7d (patch) | |
tree | bd4697e22acad6869102f4b51df9045e1b50b1d0 /src/bin/main.h | |
parent | 6df0eef45f5c6cff7cdbf5ab2ff3dad4b6beff30 (diff) |
add guards around config.h
SVN revision: 34662
Diffstat (limited to 'src/bin/main.h')
-rw-r--r-- | src/bin/main.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/bin/main.h b/src/bin/main.h index e96aa42..5c687b9 100644 --- a/src/bin/main.h +++ b/src/bin/main.h | |||
@@ -1,6 +1,10 @@ | |||
1 | #ifndef MAIN_H | 1 | #ifndef MAIN_H |
2 | #define MAIN_H | 2 | #define MAIN_H |
3 | 3 | ||
4 | #ifdef HAVE_CONFIG_H | ||
5 | # include "config.h" | ||
6 | #endif | ||
7 | |||
4 | #include <stdio.h> | 8 | #include <stdio.h> |
5 | #include <stdlib.h> | 9 | #include <stdlib.h> |
6 | #include <string.h> | 10 | #include <string.h> |
@@ -13,7 +17,6 @@ | |||
13 | #endif | 17 | #endif |
14 | 18 | ||
15 | #include <Evas.h> | 19 | #include <Evas.h> |
16 | #include "config.h" | ||
17 | #if HAVE_EVAS_SOFTWARE_X11 | 20 | #if HAVE_EVAS_SOFTWARE_X11 |
18 | #include "engine_software_x11.h" | 21 | #include "engine_software_x11.h" |
19 | #endif | 22 | #endif |
@@ -50,6 +53,7 @@ | |||
50 | #if HAVE_EVAS_DIRECTFB | 53 | #if HAVE_EVAS_DIRECTFB |
51 | #include "engine_directfb.h" | 54 | #include "engine_directfb.h" |
52 | #endif | 55 | #endif |
56 | |||
53 | #include "ui.h" | 57 | #include "ui.h" |
54 | #include "about.h" | 58 | #include "about.h" |
55 | 59 | ||
@@ -58,12 +62,12 @@ | |||
58 | extern Evas *evas; | 62 | extern Evas *evas; |
59 | extern int win_w, win_h; | 63 | extern int win_w, win_h; |
60 | 64 | ||
61 | void srnd(void); | 65 | void srnd(void); |
62 | unsigned int rnd(void); | 66 | unsigned int rnd(void); |
63 | double get_time(void); | 67 | double get_time(void); |
64 | const char *build_path(const char *filename); | 68 | const char *build_path(const char *filename); |
65 | void engine_loop(void); | 69 | void engine_loop(void); |
66 | int engine_abort(void); | 70 | int engine_abort(void); |
67 | 71 | ||
68 | #define KEY_STD \ | 72 | #define KEY_STD \ |
69 | if ((!strcmp(key, "Escape")) || (!strcmp(key, "q")) || (!strcmp(key, "Q")) || (!strcmp(key, "Return"))) \ | 73 | if ((!strcmp(key, "Escape")) || (!strcmp(key, "q")) || (!strcmp(key, "Q")) || (!strcmp(key, "Return"))) \ |