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

Unified Diff: mojo/public/c/system/tests/compile_unittest_pure_c.c

Issue 2229573002: Change the canonical way to include the C macros.h to <mojo/macros.h>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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 | « mojo/public/c/system/tests/BUILD.gn ('k') | mojo/public/c/system/tests/compile_unittest_pure_cpp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/system/tests/compile_unittest_pure_c.c
diff --git a/mojo/public/c/system/tests/compile_unittest_pure_c.c b/mojo/public/c/system/tests/compile_unittest_pure_c.c
index 135261a996ef65e49765eebb57cddb6244e30843..c4a46c4f5d167a108927843ac52b973b43ef2b48 100644
--- a/mojo/public/c/system/tests/compile_unittest_pure_c.c
+++ b/mojo/public/c/system/tests/compile_unittest_pure_c.c
@@ -6,6 +6,8 @@
#error "This file should be compiled as C, not C++."
#endif
+// Include all the header files that are meant to be compilable as C.
+#include <mojo/macros.h>
#include <stddef.h>
#include <string.h>
@@ -15,7 +17,6 @@
#include "mojo/public/c/system/buffer.h"
#include "mojo/public/c/system/data_pipe.h"
#include "mojo/public/c/system/handle.h"
-#include "mojo/public/c/system/macros.h"
#include "mojo/public/c/system/main.h"
#include "mojo/public/c/system/message_pipe.h"
#include "mojo/public/c/system/result.h"
« no previous file with comments | « mojo/public/c/system/tests/BUILD.gn ('k') | mojo/public/c/system/tests/compile_unittest_pure_cpp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698