X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fmacro.h;h=4595750394d8a2a5d43c68d27d46eb0d1ec55a64;hb=a267bebf464cbb339d3411370f2e984dfc063567;hp=1c0aa915ad3e86387ef8d949794eda090222b175;hpb=bbc98d32560cc456531bf254f7b69054921082bd;p=elogind.git diff --git a/src/shared/macro.h b/src/shared/macro.h index 1c0aa915a..459575039 100644 --- a/src/shared/macro.h +++ b/src/shared/macro.h @@ -1,7 +1,6 @@ /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ -#ifndef foomacrohfoo -#define foomacrohfoo +#pragma once /*** This file is part of systemd. @@ -45,6 +44,7 @@ #define _hidden_ __attribute__ ((visibility("hidden"))) #define _weakref_(x) __attribute__((weakref(#x))) #define _introspect_(x) __attribute__((section("introspect." x))) +#define _alignas_(x) __attribute__((aligned(__alignof(x)))) #define XSTRINGIFY(x) #x #define STRINGIFY(x) XSTRINGIFY(x) @@ -188,5 +188,3 @@ static inline size_t IOVEC_INCREMENT(struct iovec *i, unsigned n, size_t k) { } #include "log.h" - -#endif