OSDN Git Service

Move MIN macro to header to be used by other units.
authorrelan <relan@users.noreply.github.com>
Fri, 30 Oct 2009 20:27:58 +0000 (20:27 +0000)
committerrelan <relan@users.noreply.github.com>
Mon, 24 Aug 2015 05:26:10 +0000 (08:26 +0300)
libexfat/exfat.h
libexfat/io.c

index 67e1065..4a257e6 100644 (file)
@@ -29,6 +29,8 @@
 #define CLUSTER_SIZE(sb) (BLOCK_SIZE(sb) << (sb).bpc_bits)
 #define CLUSTER_INVALID(c) ((c) == EXFAT_CLUSTER_BAD || (c) == EXFAT_CLUSTER_END)
 
+#define MIN(a, b) ((a) < (b) ? (a) : (b))
+
 struct exfat_node
 {
        struct exfat_node* child;
index 123057c..ddff88c 100644 (file)
@@ -17,8 +17,6 @@
        #error You should define _FILE_OFFSET_BITS=64
 #endif
 
-#define MIN(a, b) ((a) < (b) ? (a) : (b))
-
 void exfat_read_raw(void* buffer, size_t size, off_t offset, int fd)
 {
        if (pread(fd, buffer, size, offset) != size)