#define _BABELTRACE_ALIGN_H
/*
- * BabelTrace align.h - alignment header
- *
* Copyright 2010 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
*/
#include <babeltrace/compiler-internal.h>
-#include <unistd.h>
#include <babeltrace/compat/limits-internal.h>
-#ifndef PAGE_SIZE /* Cygwin limits.h defines its own PAGE_SIZE */
-#define PAGE_SIZE sysconf(_SC_PAGE_SIZE)
-#endif
-
#define ALIGN(x, a) __ALIGN_MASK(x, (typeof(x))(a) - 1)
#define __ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask))
#define PTR_ALIGN(p, a) ((typeof(p)) ALIGN((unsigned long) (p), a))