summaryrefslogtreecommitdiff
path: root/tools/checkwps/checkwps.h
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-21 18:15:20 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-21 18:15:20 +0000
commit876db6c2fcb6d84a9c02b5aa7fbd60dbc78548a5 (patch)
tree39c12340945df6586e7132acc5c8c36a254568ad /tools/checkwps/checkwps.h
parent11826e904031f100e82aa376a51e84648cb99a7d (diff)
Fix/hack checkwps + add Onda VX747/VX777 targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22451 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/checkwps/checkwps.h')
-rw-r--r--tools/checkwps/checkwps.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/tools/checkwps/checkwps.h b/tools/checkwps/checkwps.h
index 2ba8f5f59e..1032cca246 100644
--- a/tools/checkwps/checkwps.h
+++ b/tools/checkwps/checkwps.h
@@ -24,21 +24,17 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
-#include <fcntl.h>
-
-/* subset of global_settings needed to build checkwps. */
-struct user_settings {
- bool statusbar;
- int bg_color; /* background color native format */
- int fg_color; /* foreground color native format */
-};
-
-extern struct user_settings global_settings;
#define FONT_SYSFIXED 0
#define FONT_UI 1
#define SYSFONT_HEIGHT 8
-#define MIN(x,y) ((x) > (y) ? (y) : (x))
+#ifndef MIN
+#define MIN(a, b) (((a)<(b))?(a):(b))
+#endif
+
+#ifndef BIT_N
+#define BIT_N(n) (1U << (n))
+#endif
#endif