git://wimlib.net
/
wimlib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
393cdb4
)
compiler.h: Add _aligned_attribute
author
Eric Biggers
<ebiggers3@gmail.com>
Fri, 17 May 2013 05:30:24 +0000
(
00:30
-0500)
committer
Eric Biggers
<ebiggers3@gmail.com>
Fri, 17 May 2013 05:30:24 +0000
(
00:30
-0500)
include/wimlib/compiler.h
patch
|
blob
|
history
diff --git
a/include/wimlib/compiler.h
b/include/wimlib/compiler.h
index 5ee5a433dfb553a8dbd684ccad791262fab537dd..19a9ebe70c6763cd9efb91242487a80eb45dd78d 100644
(file)
--- 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 */