OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file is used to ensure that our C headers can be compiled as C++ with | 5 // This file is used to ensure that our C headers can be compiled as C++ with |
6 // more stringent warnings, in particular with "-Wundef". | 6 // more stringent warnings, in particular with "-Wundef". |
7 | 7 |
8 // Include all the header files that are meant to be compilable as C. | 8 // Include all the header files that are meant to be compilable as C. |
| 9 #include <mojo/macros.h> |
| 10 |
| 11 // Include all the header files that are meant to be compilable as C. |
9 #include "mojo/public/c/environment/async_waiter.h" | 12 #include "mojo/public/c/environment/async_waiter.h" |
10 #include "mojo/public/c/environment/logger.h" | 13 #include "mojo/public/c/environment/logger.h" |
11 #include "mojo/public/c/system/buffer.h" | 14 #include "mojo/public/c/system/buffer.h" |
12 #include "mojo/public/c/system/data_pipe.h" | 15 #include "mojo/public/c/system/data_pipe.h" |
13 #include "mojo/public/c/system/handle.h" | 16 #include "mojo/public/c/system/handle.h" |
14 #include "mojo/public/c/system/macros.h" | |
15 #include "mojo/public/c/system/main.h" | 17 #include "mojo/public/c/system/main.h" |
16 #include "mojo/public/c/system/message_pipe.h" | 18 #include "mojo/public/c/system/message_pipe.h" |
17 #include "mojo/public/c/system/result.h" | 19 #include "mojo/public/c/system/result.h" |
18 #include "mojo/public/c/system/time.h" | 20 #include "mojo/public/c/system/time.h" |
19 #include "mojo/public/c/system/wait.h" | 21 #include "mojo/public/c/system/wait.h" |
20 #include "mojo/public/c/system/wait_set.h" | 22 #include "mojo/public/c/system/wait_set.h" |
21 | 23 |
22 // We don't actually want to test anything; we just want to make sure that this | 24 // We don't actually want to test anything; we just want to make sure that this |
23 // file is compiled/linked in (this function is called from core_unittest.cc). | 25 // file is compiled/linked in (this function is called from core_unittest.cc). |
24 const char* MinimalCppTest() { | 26 const char* MinimalCppTest() { |
25 return nullptr; | 27 return nullptr; |
26 } | 28 } |
OLD | NEW |