OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef BIN_STDIO_H_ | 5 #ifndef BIN_STDIO_H_ |
6 #define BIN_STDIO_H_ | 6 #define BIN_STDIO_H_ |
7 | 7 |
| 8 #if defined(DART_IO_DISABLED) |
| 9 #error "stdio.h can only be included on builds with IO enabled" |
| 10 #endif |
| 11 |
8 #include "bin/builtin.h" | 12 #include "bin/builtin.h" |
9 #include "bin/utils.h" | 13 #include "bin/utils.h" |
10 | 14 |
11 #include "platform/globals.h" | 15 #include "platform/globals.h" |
12 | 16 |
13 namespace dart { | 17 namespace dart { |
14 namespace bin { | 18 namespace bin { |
15 | 19 |
16 class Stdin { | 20 class Stdin { |
17 public: | 21 public: |
(...skipping 17 matching lines...) Expand all Loading... |
35 | 39 |
36 private: | 40 private: |
37 DISALLOW_ALLOCATION(); | 41 DISALLOW_ALLOCATION(); |
38 DISALLOW_IMPLICIT_CONSTRUCTORS(Stdout); | 42 DISALLOW_IMPLICIT_CONSTRUCTORS(Stdout); |
39 }; | 43 }; |
40 | 44 |
41 } // namespace bin | 45 } // namespace bin |
42 } // namespace dart | 46 } // namespace dart |
43 | 47 |
44 #endif // BIN_STDIO_H_ | 48 #endif // BIN_STDIO_H_ |
OLD | NEW |