projects
/
osl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
osl-0.2.0.
[osl.git]
/
gcc-compat.h
diff --git
a/gcc-compat.h
b/gcc-compat.h
index 20e07fc8804ed9d40d441c3465e3d91860979506..d17e6db4596268ccac73449a0327158b3c169c46 100644
(file)
--- a/
gcc-compat.h
+++ b/
gcc-compat.h
@@
-6,16
+6,13
@@
# define unlikely(x) __builtin_expect (!!(x), 0)
# define __must_check __attribute__ ((warn_unused_result))
# define __export __attribute__((visibility("default")))
# define unlikely(x) __builtin_expect (!!(x), 0)
# define __must_check __attribute__ ((warn_unused_result))
# define __export __attribute__((visibility("default")))
-/*
- * p is the number of the "format string" parameter, and q is
- * the number of the first variadic parameter
- */
-# define __printf(p,q) __attribute__ ((format (printf, p, q)))
/*
/*
- * as direct use of __printf(p,q) confuses doxygen, here are two extra macros
- * for those values p,q that are actually used by libosl.
+ * p is the number of the "format string" parameter, and q is the number of the
+ * first variadic parameter. The two extra macros hardcode those values p,q
+ * that are actually used by libosl.
*/
*/
-#define __printf_1_2 __printf(1,2)
-#define __printf_2_3 __printf(2,3)
+#define __printf(p,q) __attribute__ ((format (printf, p, q)))
+#define __printf_1_2 __printf(1,2)
+#define __printf_2_3 __printf(2,3)
#define _static_inline_ static inline
#define _static_inline_ static inline