compiler.h: Add _aligned_attribute
authorEric Biggers <ebiggers3@gmail.com>
Fri, 17 May 2013 05:30:24 +0000 (00:30 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 17 May 2013 05:30:24 +0000 (00:30 -0500)
include/wimlib/compiler.h

index 5ee5a433dfb553a8dbd684ccad791262fab537dd..19a9ebe70c6763cd9efb91242487a80eb45dd78d 100644 (file)
@@ -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 */