OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_SECURE_SOCKET_H_ | 5 #ifndef BIN_SECURE_SOCKET_H_ |
6 #define BIN_SECURE_SOCKET_H_ | 6 #define BIN_SECURE_SOCKET_H_ |
7 | 7 |
8 #if defined(DART_IO_SECURE_SOCKET_DISABLED) | 8 #if defined(DART_IO_DISABLED) || defined(DART_IO_SECURE_SOCKET_DISABLED) |
9 #error "secure_socket.h can only be included on builds with SSL enabled" | 9 #error "secure_socket.h can only be included on builds with SSL enabled" |
10 #endif | 10 #endif |
11 | 11 |
12 #include "platform/globals.h" | 12 #include "platform/globals.h" |
13 #if defined(TARGET_OS_ANDROID) || \ | 13 #if defined(TARGET_OS_ANDROID) || \ |
14 defined(TARGET_OS_LINUX) || \ | 14 defined(TARGET_OS_LINUX) || \ |
15 defined(TARGET_OS_WINDOWS) | 15 defined(TARGET_OS_WINDOWS) |
16 #include "bin/secure_socket_boringssl.h" | 16 #include "bin/secure_socket_boringssl.h" |
17 #elif defined(TARGET_OS_MACOS) | 17 #elif defined(TARGET_OS_MACOS) |
18 #include "bin/secure_socket_macos.h" | 18 #include "bin/secure_socket_macos.h" |
19 #else | 19 #else |
20 #error Unknown target os. | 20 #error Unknown target os. |
21 #endif | 21 #endif |
22 | 22 |
23 #endif // BIN_SECURE_SOCKET_H_ | 23 #endif // BIN_SECURE_SOCKET_H_ |
OLD | NEW |