From 18b6d7ce7d490e807815270918a17a4b392a829d Mon Sep 17 00:00:00 2001 From: Raghavendra Gowdappa Date: Fri, 16 Nov 2018 16:27:17 +0530 Subject: libglusterfs: rename macros roof and floor to not conflict with math.h Change-Id: I666eeb63ebd000711b3f793b948d4e0c04b1a242 Signed-off-by: Raghavendra Gowdappa Updates: bz#1644629 --- libglusterfs/src/common-utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h index c08c16ccedb..f0762566313 100644 --- a/libglusterfs/src/common-utils.h +++ b/libglusterfs/src/common-utils.h @@ -61,8 +61,8 @@ trap(void); #define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b)) -#define roof(a, b) ((((a) + (b)-1) / ((b != 0) ? (b) : 1)) * (b)) -#define floor(a, b) (((a) / ((b != 0) ? (b) : 1)) * (b)) +#define gf_roof(a, b) ((((a) + (b)-1) / ((b != 0) ? (b) : 1)) * (b)) +#define gf_floor(a, b) (((a) / ((b != 0) ? (b) : 1)) * (b)) #define IPv4_ADDR_SIZE 32 -- cgit