| // Copyright 2018 The Fuchsia Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| #ifndef SRC_DEVELOPER_DEBUG_SHARED_PLATFORM_MESSAGE_LOOP_H_ | |
| #define SRC_DEVELOPER_DEBUG_SHARED_PLATFORM_MESSAGE_LOOP_H_ | |
| #if defined(__Fuchsia__) | |
| #include "src/developer/debug/shared/message_loop_fuchsia.h" | |
| #elif defined(__linux__) | |
| #include "src/developer/debug/shared/message_loop_linux.h" | |
| #else | |
| #include "src/developer/debug/shared/message_loop_poll.h" | |
| #endif | |
| namespace debug { | |
| #if defined(__Fuchsia__) | |
| using PlatformMessageLoop = MessageLoopFuchsia; | |
| #elif defined(__linux__) | |
| using PlatformMessageLoop = MessageLoopLinux; | |
| #else | |
| using PlatformMessageLoop = MessageLoopPoll; | |
| #endif | |
| } // namespace debug | |
| #endif // SRC_DEVELOPER_DEBUG_SHARED_PLATFORM_MESSAGE_LOOP_H_ |