summaryrefslogtreecommitdiff
path: root/tools/checkwps/checkwps.h
diff options
context:
space:
mode:
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 @@
24#include <stdio.h> 24#include <stdio.h>
25#include <stdlib.h> 25#include <stdlib.h>
26#include <stdbool.h> 26#include <stdbool.h>
27#include <fcntl.h>
28
29/* subset of global_settings needed to build checkwps. */
30struct user_settings {
31 bool statusbar;
32 int bg_color; /* background color native format */
33 int fg_color; /* foreground color native format */
34};
35
36extern struct user_settings global_settings;
37 27
38#define FONT_SYSFIXED 0 28#define FONT_SYSFIXED 0
39#define FONT_UI 1 29#define FONT_UI 1
40#define SYSFONT_HEIGHT 8 30#define SYSFONT_HEIGHT 8
41 31
42#define MIN(x,y) ((x) > (y) ? (y) : (x)) 32#ifndef MIN
33#define MIN(a, b) (((a)<(b))?(a):(b))
34#endif
35
36#ifndef BIT_N
37#define BIT_N(n) (1U << (n))
38#endif
43 39
44#endif 40#endif