Update system_wrappers

Corresponds to upstream commit 524e9b043e7e86fd72353b987c9d5f6a1ebf83e1
This commit is contained in:
Arun Raghavan
2015-10-13 12:23:08 +05:30
parent c4fb4e38de
commit 5ae7a5d6cd
10 changed files with 423 additions and 266 deletions

View File

@ -9,19 +9,20 @@
*/
#if defined(_WIN32)
#include <windows.h>
#include "critical_section_windows.h"
#include <windows.h>
#include "webrtc/system_wrappers/source/critical_section_win.h"
#else
#include "critical_section_posix.h"
#include "webrtc/system_wrappers/source/critical_section_posix.h"
#endif
namespace webrtc {
CriticalSectionWrapper* CriticalSectionWrapper::CreateCriticalSection()
{
CriticalSectionWrapper* CriticalSectionWrapper::CreateCriticalSection() {
#ifdef _WIN32
return new CriticalSectionWindows();
return new CriticalSectionWindows();
#else
return new CriticalSectionPosix();
return new CriticalSectionPosix();
#endif
}
} // namespace webrtc
} // namespace webrtc