diff --git a/src/connection.c b/src/connection.c index ca4a24cd..95d2bf1b 100644 --- a/src/connection.c +++ b/src/connection.c @@ -39,6 +39,8 @@ #include "wayland-util.h" #include "wayland-private.h" +#define DIV_ROUNDUP(n, a) ( ((n) + ((a) - 1)) / (a) ) + struct wl_buffer { char data[4096]; int head, tail; diff --git a/src/wayland-util.h b/src/wayland-util.h index 1eca058b..2c0247e9 100644 --- a/src/wayland-util.h +++ b/src/wayland-util.h @@ -37,8 +37,6 @@ extern "C" { #endif #define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0]) -#define ALIGN(n, a) ( ((n) + ((a) - 1)) & ~((a) - 1) ) -#define DIV_ROUNDUP(n, a) ( ((n) + ((a) - 1)) / (a) ) #define container_of(ptr, type, member) ({ \ const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \