include: Avoid redefinition of ALIGN
[GitHub/LineageOS/android_hardware_samsung_slsi_openmax.git] / include / exynos / Exynos_OMX_Macros.h
index 8c56c957a99b06869f9d8b7ae91f584bc01116e7..be3207e5067ac4d6b4d02777dc53daaefe5dc07b 100644 (file)
@@ -34,7 +34,9 @@
 /*
  * MACROS
  */
+#ifndef ALIGN
 #define ALIGN(x, a)       (((x) + (a) - 1) & ~((a) - 1))
+#endif
 #define ALIGN_TO_16B(x)   ((((x) + (1 <<  4) - 1) >>  4) <<  4)
 #define ALIGN_TO_32B(x)   ((((x) + (1 <<  5) - 1) >>  5) <<  5)
 #define ALIGN_TO_128B(x)  ((((x) + (1 <<  7) - 1) >>  7) <<  7)