Chromium Code Reviews| Index: common.h |
| diff --git a/common.h b/common.h |
| index fbbfc189e7c3383f08c403b4f990c85412c5608e..60dd5ed2d8faef4729202e39e039d41df16fc8ee 100644 |
| --- a/common.h |
| +++ b/common.h |
| @@ -67,6 +67,16 @@ |
| # endif |
| #endif |
| +#define UNCONST(a) ((void *)(unsigned long)(const void *)(a)) |
| + |
| +#if defined(__GNUC__) |
| +# define _printf(a, b) __attribute__((__format__(__printf__, a, b))) |
| +# define _unused __attribute__((__unused__)) |
| +#else |
| +# define _printf(a, b) |
| +# define _unused |
| +#endif |
| + |
| int set_cloexec(int); |
| int set_nonblock(int); |
| char *get_line(FILE * __restrict); |