summaryrefslogtreecommitdiff
path: root/ext4_utils/ext4_utils.h
diff options
context:
space:
mode:
authorRaphael Moll <raphael@google.com>2012-02-03 23:02:33 -0800
committerRaphael Moll <raphael@google.com>2012-02-16 13:15:04 -0800
commit4605b3fb8a00fa37f617a8d0fe3a095d0503a845 (patch)
tree648c0e8c3df25c4139cebb442c905b4ddc8ef99a /ext4_utils/ext4_utils.h
parent3ee934fecdf8148ed5ea499932aedcca7530830c (diff)
downloadextras-4605b3fb8a00fa37f617a8d0fe3a095d0503a845.tar.gz
Adapt ext4_utils for windows.
This is not a full port of ext4_utils for windows. Instead it merely enables use to use the library for the 'create an empty fs image' functionality as used by 'fastboot format'. Change-Id: Ia1ffacd64e4233c4fbb369c4ac5927ccd72ac526
Diffstat (limited to 'ext4_utils/ext4_utils.h')
-rw-r--r--ext4_utils/ext4_utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext4_utils/ext4_utils.h b/ext4_utils/ext4_utils.h
index bb9c09e8..5b835edb 100644
--- a/ext4_utils/ext4_utils.h
+++ b/ext4_utils/ext4_utils.h
@@ -64,7 +64,9 @@ extern int force;
#define EXT4_SUPER_MAGIC 0xEF53
#define EXT4_JNL_BACKUP_BLOCKS 1
+#ifndef min /* already defined by windows.h */
#define min(a, b) ((a) < (b) ? (a) : (b))
+#endif
#define DIV_ROUND_UP(x, y) (((x) + (y) - 1)/(y))
#define ALIGN(x, y) ((y) * DIV_ROUND_UP((x), (y)))