projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: Reduce redundancy in configure.ac, convert osl detection.
[paraslash.git]
/
gcc-compat.h
diff --git
a/gcc-compat.h
b/gcc-compat.h
index 1cd30af2fc7219cb132aa9d0631518e4c6efa942..dd6afe1d4fb25c73190626ee9206da43a67ffd6f 100644
(file)
--- a/
gcc-compat.h
+++ b/
gcc-compat.h
@@
-1,18
+1,25
@@
-# define inline inline __attribute__ ((always_inline))
-# define __noreturn __attribute__ ((noreturn))
-# define __malloc __attribute__ ((malloc))
-# define __a_unused __attribute__ ((unused))
+#define inline inline __attribute__ ((always_inline))
+#define __noreturn __attribute__ ((noreturn))
+#define __malloc __attribute__ ((malloc))
+#define __a_unused __attribute__ ((unused))
+#define __a_aligned(alignment) __attribute__((__aligned__(alignment)))
+
/*
/*
- * p is the number of the "format string" parameter, and q is
- * the number of the first variadic parameter.
+ * p is the number of the "format string" parameter, and q is the number of the
+ * first variadic parameter. If q is specified as zero, the compiler only
+ * checks the format string for consistency.
*/
# define __printf(p,q) __attribute__ ((format (printf, p, q)))
*/
# define __printf(p,q) __attribute__ ((format (printf, p, q)))
+# define __a_const __attribute__ ((const))
+
/*
/*
- *
as direct use of __printf(p,q) confuses doxygen, here are two
extra macros
- * for those values p,q that are actually used
by paraslash
.
+ *
As direct use of __printf(p,q) confuses doxygen, here are some
extra macros
+ * for those values p,q that are actually used.
*/
*/
-#define __printf_1_2 __printf(1,2)
-#define __printf_2_3 __printf(2,3)
+#define __printf_2_0 __printf(2,0)
+#define __printf_1_2 __printf(1,2)
+#define __printf_2_3 __printf(2,3)
+#define __printf_3_4 __printf(3,4)
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3)
# define __must_check __attribute__ ((warn_unused_result))
# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3)
# define __must_check __attribute__ ((warn_unused_result))
@@
-21,3
+28,4
@@
# endif
#define _static_inline_ static inline
# endif
#define _static_inline_ static inline
+