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

Unified Diff: fusl/include/stddef.h

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 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
Index: fusl/include/stddef.h
diff --git a/fusl/include/stddef.h b/fusl/include/stddef.h
index bd753853503d94ca3759b2e451fffb68675e869b..2aa803fc250cebab64ec6bc98175b5729990645d 100644
--- a/fusl/include/stddef.h
+++ b/fusl/include/stddef.h
@@ -19,7 +19,8 @@
#if __GNUC__ > 3
#define offsetof(type, member) __builtin_offsetof(type, member)
#else
-#define offsetof(type, member) ((size_t)( (char *)&(((type *)0)->member) - (char *)0 ))
+#define offsetof(type, member) \
+ ((size_t)((char*)&(((type*)0)->member) - (char*)0))
#endif
#endif

Powered by Google App Engine
This is Rietveld 408576698