103881d01c
i.e. #ifndef VM_WHATEVER -> #ifndef RUNTIME_VM_WHATEVER This lets us remove a hack from the PRESUBMIT.py script that existed for reasons that are no longer valid, and sets us up to add some presubmit checks for the GN build. R=asiva@google.com, rmacnak@google.com Review URL: https://codereview.chromium.org/2450713004 .
28 lines
870 B
C
28 lines
870 B
C
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#ifndef RUNTIME_BIN_SECURE_SOCKET_H_
|
|
#define RUNTIME_BIN_SECURE_SOCKET_H_
|
|
|
|
#if defined(DART_IO_DISABLED) || defined(DART_IO_SECURE_SOCKET_DISABLED)
|
|
#error "secure_socket.h can only be included on builds with SSL enabled"
|
|
#endif
|
|
|
|
#include "platform/globals.h"
|
|
#if defined(TARGET_OS_ANDROID) || \
|
|
defined(TARGET_OS_LINUX) || \
|
|
defined(TARGET_OS_WINDOWS)
|
|
#include "bin/secure_socket_boringssl.h"
|
|
#elif defined(TARGET_OS_MACOS)
|
|
#if TARGET_OS_IOS
|
|
#include "bin/secure_socket_ios.h"
|
|
#else // TARGET_OS_IOS
|
|
#include "bin/secure_socket_macos.h"
|
|
#endif // TARGET_OS_IOS
|
|
#else
|
|
#error Unknown target os.
|
|
#endif
|
|
|
|
#endif // RUNTIME_BIN_SECURE_SOCKET_H_
|