From ba32db95321608b11f9283c0475812e1dc9897a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 30 Mar 2012 10:28:39 -0400 Subject: [PATCH] Move DIV_ROUNDUP out of public header, remove unused ALIGN --- src/connection.c | 2 ++ src/wayland-util.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) 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); \