File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
build/bazel/examples/hello_cpp Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
#include < iostream>
6
6
7
+ // In real code, use the macros in <zircon/availability.h> for such checks.
8
+ // This is an exceptional case where a check for equality is needed.
7
9
#if __Fuchsia_API_level__ == 17
8
10
#include " lib/hello_printer_17.h"
9
11
#endif
Original file line number Diff line number Diff line change 5
5
#ifndef BUILD_BAZEL_EXAMPLES_HELLO_CPP_LIB_HELLO_PRINTER_17_H_
6
6
#define BUILD_BAZEL_EXAMPLES_HELLO_CPP_LIB_HELLO_PRINTER_17_H_
7
7
8
+ // In real code, use the macros in <zircon/availability.h> for such checks.
9
+ // This is an exceptional case where a check for equality is needed.
8
10
#if __Fuchsia_API_level__ == 17
9
11
10
12
namespace hello_printer_17 {
@@ -19,6 +21,6 @@ class HelloPrinter {
19
21
20
22
} // namespace hello_printer_17
21
23
22
- #endif // __Fuchsia_API_level__
24
+ #endif // __Fuchsia_API_level__ == 17
23
25
24
26
#endif // BUILD_BAZEL_EXAMPLES_HELLO_CPP_LIB_HELLO_PRINTER_17_H_
You can’t perform that action at this time.
0 commit comments