summaryrefslogtreecommitdiff
path: root/src/utils/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/utils.h')
-rw-r--r--src/utils/utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/utils.h b/src/utils/utils.h
index 2a61c2d..7f4e1a6 100644
--- a/src/utils/utils.h
+++ b/src/utils/utils.h
@@ -29,4 +29,8 @@
#define N_ELEMENTS(s) (sizeof((s)) / sizeof((s)[0]))
#endif
+#ifndef ALIGN
+#define ALIGN(val) (((val) + 3) & ~(3))
+#endif
+
#endif