1/* 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11#include "webrtc/system_wrappers/interface/event_wrapper.h" 12 13#if defined(_WIN32) 14#include <windows.h> 15#include "webrtc/system_wrappers/source/event_win.h" 16#elif defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) 17#include <ApplicationServices/ApplicationServices.h> 18#include <pthread.h> 19#include "webrtc/system_wrappers/source/event_posix.h" 20#else 21#include <pthread.h> 22#include "webrtc/system_wrappers/source/event_posix.h" 23#endif 24 25namespace webrtc { 26EventWrapper* EventWrapper::Create() { 27#if defined(_WIN32) 28 return new EventWindows(); 29#else 30 return EventPosix::Create(); 31#endif 32} 33} // namespace webrtc 34