diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-05-29 10:05:27 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-05-29 10:05:27 +0000 |
commit | 7b719114a10225613470296d10299c38545e6a65 (patch) | |
tree | 266196d8c7feea757243e44dffffeff75a21d6ed | |
parent | 0f60775ecda6c229d2676a969ac1841d1a41e6a4 (diff) | |
download | rockbox-7b719114a10225613470296d10299c38545e6a65.tar.gz rockbox-7b719114a10225613470296d10299c38545e6a65.zip |
APPSVERSION is defined in a stand-alone header file, and main.c sets
a global variable accordingly. Keep the header file clean, we want to
be able to machine-generate it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@785 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/main.c | 4 | ||||
-rw-r--r-- | apps/version.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/apps/main.c b/apps/main.c index 86c7be424e..d7adb46b64 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -35,6 +35,10 @@ | |||
35 | #include "mpeg.h" | 35 | #include "mpeg.h" |
36 | #include "main_menu.h" | 36 | #include "main_menu.h" |
37 | 37 | ||
38 | #include "version.h" | ||
39 | |||
40 | char appsversion[]=APPSVERSION; | ||
41 | |||
38 | void app_main(void) | 42 | void app_main(void) |
39 | { | 43 | { |
40 | browse_root(); | 44 | browse_root(); |
diff --git a/apps/version.h b/apps/version.h new file mode 100644 index 0000000000..6837752e88 --- /dev/null +++ b/apps/version.h | |||
@@ -0,0 +1 @@ | |||
#define APPSVERSION "0.1" | |||