summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/flash.h b/flash.h
index b60a98097..c1d89802f 100644
--- a/flash.h
+++ b/flash.h
@@ -301,7 +301,11 @@ void print_supported_wiki(void);
/* helpers.c */
uint32_t address_to_bits(uint32_t addr);
-int bitcount(unsigned long a);
+unsigned int bitcount(unsigned long a);
+#undef MIN
+#define MIN(a, b) ((a) < (b) ? (a) : (b))
+#undef MAX
+#define MAX(a, b) ((a) > (b) ? (a) : (b))
int max(int a, int b);
int min(int a, int b);
char *strcat_realloc(char *dest, const char *src);