Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: common.h

Issue 2428004: Overhaul dhcpcd for chrome os use (Closed) Base URL: ssh://git@chromiumos-git//dhcpcd.git
Patch Set: purge hooks from configure to silence complaint Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « README.chromium ('k') | configure » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « README.chromium ('k') | configure » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698