summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/utils.h b/src/utils.h
index 920db4c..303b93c 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -36,6 +36,14 @@
switch (0) { case 0: case (expr): ; } \
} while (0)
+#define ARRAY_SIZE(arr) ((sizeof(arr) / sizeof(*(arr))))
+
+#define MIN(a, b) ((a) < (b) ? (a) : (b))
+#define MAX(a, b) ((a) > (b) ? (a) : (b))
+
+/* Round up @a so it's divisible by @b. */
+#define ROUNDUP(a, b) (((a) + (b) - 1) / (b) * (b))
+
char
to_lower(char c);
@@ -194,14 +202,6 @@ map_file(FILE *file, char **string_out, size_t *size_out);
void
unmap_file(char *string, size_t size);
-#define ARRAY_SIZE(arr) ((sizeof(arr) / sizeof(*(arr))))
-
-#define MIN(a, b) ((a) < (b) ? (a) : (b))
-#define MAX(a, b) ((a) > (b) ? (a) : (b))
-
-/* Round up @a so it's divisible by @b. */
-#define ROUNDUP(a, b) (((a) + (b) - 1) / (b) * (b))
-
#if defined(HAVE_SECURE_GETENV)
# define secure_getenv secure_getenv
#elif defined(HAVE___SECURE_GETENV)