From: Eric Biggers Date: Fri, 17 May 2013 05:30:24 +0000 (-0500) Subject: compiler.h: Add _aligned_attribute X-Git-Tag: v1.4.0~31 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=9b3bd8bf81681c6ac3216f62bbf7c7cf63e9bb17 compiler.h: Add _aligned_attribute --- diff --git a/include/wimlib/compiler.h b/include/wimlib/compiler.h index 5ee5a433..19a9ebe7 100644 --- a/include/wimlib/compiler.h +++ b/include/wimlib/compiler.h @@ -18,6 +18,7 @@ # endif # define _malloc_attribute __attribute__((malloc)) # define _warn_unused_result_attribute __attribute__((warn_unused_result)) +# define _aligned_attribute(size) __attribute__((aligned(size))) #else # define WIMLIBAPI # define _always_inline_attribute inline @@ -26,6 +27,7 @@ # define _packed_attribute # define _malloc_attribute # define _warn_unused_result_attribute +# define _aligned_attribute(size) #endif /* __GNUC__ */ #endif /* _WIMLIB_COMPILER_H */